Podfile
target 'yourAppNameHere' do
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'BatchedBridge', # Required For React Native 0.45.0+
'Core',
'DevSupport',
'RCTAnimation',
'RCTActionSheet',
'RCTBlob',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket'
# Add any other modules that You need
]
end
Unlink libReact.a
In Xcode, head to Build Phases of Your project.
Remove 'libReact.a' from the Link Binary With Libraries.
Make sure that libPods-yourAppNameHere.a
is in there.
Add new React to scheme
In Xcode, select Product > Scheme > Edit Scheme
On the left, Select Build
Old React
should be missing here, so delete it by clicking -
button on the bottom.
Add new React
with +
button, select it from Pods
project
Grab and move React
to the top of the list.
Close and Build Your project