Skip to content

Commit 739702d

Browse files
troZeePiotr Trockikrozniata
authored
chore: add examples to old arch (#612)
* chore: add examples to old arch * fix: fix typescript errors * fix: change type in HeadphonesCarouselExample Co-authored-by: Piotr Trocki <[email protected]> Co-authored-by: krozniata <[email protected]>
1 parent d313a27 commit 739702d

37 files changed

+4260
-1178
lines changed

example/babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ module.exports = {
1313
},
1414
},
1515
],
16+
'react-native-reanimated/plugin',
1617
],
1718
};

example/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { AppRegistry } from 'react-native';
2+
import { Navigation } from './src/App';
3+
import { name as appName } from './app.json';
4+
5+
AppRegistry.registerComponent(appName, () => Navigation);

example/index.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

example/ios/Podfile.lock

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ PODS:
302302
- React-jsinspector (0.70.0)
303303
- React-logger (0.70.0):
304304
- glog
305-
- react-native-pager-view (0.1.0):
305+
- react-native-pager-view (6.1.0-rc.1):
306+
- React-Core
307+
- react-native-safe-area-context (3.4.1):
306308
- React-Core
307309
- React-perflogger (0.70.0)
308310
- React-RCTActionSheet (0.70.0):
@@ -370,6 +372,41 @@ PODS:
370372
- React-jsi (= 0.70.0)
371373
- React-logger (= 0.70.0)
372374
- React-perflogger (= 0.70.0)
375+
- RNCMaskedView (0.1.11):
376+
- React
377+
- RNGestureHandler (1.10.3):
378+
- React-Core
379+
- RNReanimated (2.10.0):
380+
- DoubleConversion
381+
- FBLazyVector
382+
- FBReactNativeSpec
383+
- glog
384+
- RCT-Folly
385+
- RCTRequired
386+
- RCTTypeSafety
387+
- React-callinvoker
388+
- React-Core
389+
- React-Core/DevSupport
390+
- React-Core/RCTWebSocket
391+
- React-CoreModules
392+
- React-cxxreact
393+
- React-jsi
394+
- React-jsiexecutor
395+
- React-jsinspector
396+
- React-RCTActionSheet
397+
- React-RCTAnimation
398+
- React-RCTBlob
399+
- React-RCTImage
400+
- React-RCTLinking
401+
- React-RCTNetwork
402+
- React-RCTSettings
403+
- React-RCTText
404+
- ReactCommon/turbomodule/core
405+
- Yoga
406+
- RNScreens (2.18.1):
407+
- React-Core
408+
- RNSVG (12.4.4):
409+
- React-Core
373410
- SocketRocket (0.6.0)
374411
- Yoga (1.14.0)
375412
- YogaKit (1.18.1):
@@ -423,6 +460,7 @@ DEPENDENCIES:
423460
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
424461
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
425462
- react-native-pager-view (from `../..`)
463+
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
426464
- React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
427465
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
428466
- React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
@@ -435,6 +473,11 @@ DEPENDENCIES:
435473
- React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
436474
- React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
437475
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
476+
- "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)"
477+
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
478+
- RNReanimated (from `../node_modules/react-native-reanimated`)
479+
- RNScreens (from `../node_modules/react-native-screens`)
480+
- RNSVG (from `../node_modules/react-native-svg`)
438481
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
439482

440483
SPEC REPOS:
@@ -500,6 +543,8 @@ EXTERNAL SOURCES:
500543
:path: "../node_modules/react-native/ReactCommon/logger"
501544
react-native-pager-view:
502545
:path: "../.."
546+
react-native-safe-area-context:
547+
:path: "../node_modules/react-native-safe-area-context"
503548
React-perflogger:
504549
:path: "../node_modules/react-native/ReactCommon/reactperflogger"
505550
React-RCTActionSheet:
@@ -524,6 +569,16 @@ EXTERNAL SOURCES:
524569
:path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
525570
ReactCommon:
526571
:path: "../node_modules/react-native/ReactCommon"
572+
RNCMaskedView:
573+
:path: "../node_modules/@react-native-community/masked-view"
574+
RNGestureHandler:
575+
:path: "../node_modules/react-native-gesture-handler"
576+
RNReanimated:
577+
:path: "../node_modules/react-native-reanimated"
578+
RNScreens:
579+
:path: "../node_modules/react-native-screens"
580+
RNSVG:
581+
:path: "../node_modules/react-native-svg"
527582
Yoga:
528583
:path: "../node_modules/react-native/ReactCommon/yoga"
529584

@@ -562,7 +617,8 @@ SPEC CHECKSUMS:
562617
React-jsiexecutor: be588b7abbea4f1d03840bc675d68d99380e5bf3
563618
React-jsinspector: bd839d6c2c28e49fe1373f055735d2abecbd6cf3
564619
React-logger: 48d82b9be8e44d86668de4453fdb60255516388b
565-
react-native-pager-view: fe2b9a6c37c7ce21830b45e655e48482cac3bb21
620+
react-native-pager-view: d90e3ddc5334b14e84a8773b90e1589c79e3ea26
621+
react-native-safe-area-context: 9e40fb181dac02619414ba1294d6c2a807056ab9
566622
React-perflogger: 77947e49d84e31eb87d454d4ef327542dcfeaebc
567623
React-RCTActionSheet: 9f5fd6c1666c1a834ab7f45a452ed08b1de44eb8
568624
React-RCTAnimation: 6fd3db6ca387c8432fd6a26428e940a081bcb476
@@ -575,10 +631,15 @@ SPEC CHECKSUMS:
575631
React-RCTVibration: 5499b77c0fd57f346a5f0b36bb79fdb020d17d3e
576632
React-runtimeexecutor: 80c195ffcafb190f531fdc849dc2d19cb4bb2b34
577633
ReactCommon: de55f940495d7bf87b5d7bf55b5b15cdd50d7d7b
634+
RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489
635+
RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211
636+
RNReanimated: 60e291d42c77752a0f6d6f358387bdf225a87c6e
637+
RNScreens: f7ad633b2e0190b77b6a7aab7f914fad6f198d8d
638+
RNSVG: ecd661f380a07ba690c9c5929c475a44f432d674
578639
SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608
579640
Yoga: 82c9e8f652789f67d98bed5aef9d6653f71b04a9
580641
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
581642

582-
PODFILE CHECKSUM: c3f55a2db55c649d1a0cbbe1ddc960cf31374957
643+
PODFILE CHECKSUM: 19416d7ab85e40fb19965457402ab8bdea762543
583644

584645
COCOAPODS: 1.11.3

example/package.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,19 @@
1010
"postinstall": "patch-package"
1111
},
1212
"dependencies": {
13+
"@react-native-community/masked-view": "^0.1.10",
14+
"@react-navigation/native": "^5.8.10",
15+
"@react-navigation/native-stack": "5.0.4",
16+
"@react-navigation/stack": "^5.12.8",
1317
"react": "18.1.0",
14-
"react-native": "0.70.0"
18+
"react-native": "0.70.0",
19+
"react-native-animated-pagination-dots": "^0.1.73",
20+
"react-native-gesture-handler": "^1.9.0",
21+
"react-native-reanimated": "^2.3.1",
22+
"react-native-safe-area-context": "^3.1.9",
23+
"react-native-screens": "^2.16.1",
24+
"react-native-svg": "12.4.4",
25+
"react-native-tab-view": "^3.1.1"
1526
},
1627
"resolutions": {
1728
"@types/react": "17.0.21"
@@ -21,10 +32,10 @@
2132
"@babel/runtime": "^7.12.5",
2233
"@types/react-native": "0.70.0",
2334
"@types/react-test-renderer": "^18.0.0",
24-
"metro-react-native-babel-preset": "^0.72.1",
25-
"react-test-renderer": "18.1.0",
2635
"babel-plugin-module-resolver": "^4.1.0",
36+
"metro-react-native-babel-preset": "^0.72.1",
2737
"patch-package": "^6.4.7",
28-
"postinstall-postinstall": "^2.1.0"
38+
"postinstall-postinstall": "^2.1.0",
39+
"react-test-renderer": "18.1.0"
2940
}
3041
}

0 commit comments

Comments
 (0)