|
1 | | -platform :ios, '9.0' |
2 | | -$node_modules_path = '../../node_modules' |
3 | | - |
4 | | -require_relative "#{$node_modules_path}/@react-native-community/cli-platform-ios/native_modules" |
| 1 | +require_relative '../../node_modules/react-native/scripts/react_native_pods' |
| 2 | +require_relative '../../node_modules/@react-native-community/cli-platform-ios/native_modules' |
5 | 3 |
|
| 4 | +platform :ios, '11.0' |
6 | 5 |
|
7 | 6 | target 'example' do |
8 | | - # Pods for example |
9 | | - pod 'FBLazyVector', :path => "#{$node_modules_path}/react-native/Libraries/FBLazyVector" |
10 | | - pod 'FBReactNativeSpec', :path => "#{$node_modules_path}/react-native/Libraries/FBReactNativeSpec" |
11 | | - pod 'RCTRequired', :path => "#{$node_modules_path}/react-native/Libraries/RCTRequired" |
12 | | - pod 'RCTTypeSafety', :path => "#{$node_modules_path}/react-native/Libraries/TypeSafety" |
| 7 | + config = use_native_modules! |
13 | 8 |
|
14 | | - pod 'React', :path => "#{$node_modules_path}/react-native" |
15 | | - pod 'React-CoreModules', :path => "#{$node_modules_path}/react-native/React/CoreModules" |
16 | | - pod 'React-Core/DevSupport', :path => "#{$node_modules_path}/react-native/" |
17 | | - pod 'React-RCTActionSheet', :path => "#{$node_modules_path}/react-native/Libraries/ActionSheetIOS" |
18 | | - pod 'React-RCTAnimation', :path => "#{$node_modules_path}/react-native/Libraries/NativeAnimation" |
19 | | - pod 'React-RCTBlob', :path => "#{$node_modules_path}/react-native/Libraries/Blob" |
20 | | - pod 'React-RCTImage', :path => "#{$node_modules_path}/react-native/Libraries/Image" |
21 | | - pod 'React-RCTLinking', :path => "#{$node_modules_path}/react-native/Libraries/LinkingIOS" |
22 | | - pod 'React-RCTNetwork', :path => "#{$node_modules_path}/react-native/Libraries/Network" |
23 | | - pod 'React-RCTSettings', :path => "#{$node_modules_path}/react-native/Libraries/Settings" |
24 | | - pod 'React-RCTText', :path => "#{$node_modules_path}/react-native/Libraries/Text" |
25 | | - pod 'React-RCTVibration', :path => "#{$node_modules_path}/react-native/Libraries/Vibration" |
26 | | - pod 'React-Core/RCTWebSocket', :path => "#{$node_modules_path}/react-native/" |
| 9 | + use_react_native!( |
| 10 | + :path => config[:reactNativePath], |
| 11 | + # to enable hermes on iOS, change `false` to `true` and then install pods |
| 12 | + :hermes_enabled => false |
| 13 | + ) |
27 | 14 |
|
28 | | - pod 'React-cxxreact', :path => "#{$node_modules_path}/react-native/ReactCommon/cxxreact" |
29 | | - pod 'React-jsi', :path => "#{$node_modules_path}/react-native/ReactCommon/jsi" |
30 | | - pod 'React-jsiexecutor', :path => "#{$node_modules_path}/react-native/ReactCommon/jsiexecutor" |
31 | | - pod 'React-jsinspector', :path => "#{$node_modules_path}/react-native/ReactCommon/jsinspector" |
32 | | - pod 'ReactCommon/callinvoker', :path => "#{$node_modules_path}/react-native/ReactCommon" |
33 | | - pod 'ReactCommon/turbomodule/core', :path => "#{$node_modules_path}/react-native/ReactCommon" |
34 | | - pod 'Yoga', :path => "#{$node_modules_path}/react-native/ReactCommon/yoga" |
| 15 | + target 'exampleTests' do |
| 16 | + inherit! :complete |
| 17 | + # Pods for testing |
| 18 | + end |
35 | 19 |
|
36 | | - pod 'DoubleConversion', :podspec => "#{$node_modules_path}/react-native/third-party-podspecs/DoubleConversion.podspec" |
37 | | - pod 'glog', :podspec => "#{$node_modules_path}/react-native/third-party-podspecs/glog.podspec" |
38 | | - pod 'Folly', :podspec => "#{$node_modules_path}/react-native/third-party-podspecs/Folly.podspec" |
| 20 | + # Enables Flipper. |
| 21 | + # |
| 22 | + # Note that if you have use_frameworks! enabled, Flipper will not work and |
| 23 | + # you should disable the next line. |
| 24 | + use_flipper!() |
39 | 25 |
|
40 | | - use_native_modules! |
| 26 | + post_install do |installer| |
| 27 | + react_native_post_install(installer) |
| 28 | + end |
41 | 29 | end |
0 commit comments