@@ -33,23 +33,25 @@ target 'YourApp' do
3333
3434 pod 'react-native-pspdfkit', :path => '../node_modules/react-native-pspdfkit'
3535
36- # To use CocoaPods with React Native, you need to add this specific Yoga spec as well
37- pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga/Yoga.podspec'
38-
39- # You don't necessarily need all of these subspecs, but this would be a typical setup.
36+ # Your 'node_modules' directory is probably in the root of your project,
37+ # but if not, adjust the `:path` accordingly
4038 pod 'React', :path => '../node_modules/react-native', :subspecs => [
4139 'Core',
40+ 'CxxBridge', # Include this for RN >= 0.47
41+ 'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
4242 'RCTText',
4343 'RCTNetwork',
44- 'RCTWebSocket', # needed for debugging
45- 'RCTImage',
46- 'RCTNetwork',
47- 'BatchedBridge', # https://github.com/facebook/react-native/issues/14749
44+ 'RCTWebSocket', # Needed for debugging
45+ 'RCTAnimation', # Needed for FlatList and animations running on native UI thread
4846 # Add any other subspecs you want to use in your project
4947 ]
48+ # Explicitly include Yoga if you are using RN >= 0.42.0
49+ pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
5050
51- # Add any other dependencies here, including any 3rd party native libraries that you depend on for
52- # React Native.
51+ # Third party deps podspec link
52+ pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
53+ pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
54+ pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
5355end
5456```
5557
0 commit comments