React Native SDK Upgrade Guide¶
Run the following command.
npm update react-native-repro
On rare occasions extra steps may be necessary which can be found in the React Native SDK Release Notes.
If you are using React Native with Auto Linking¶
Repro React Native SDK 2.1.0 now supports the Auto Linking feature introduced in React Native 0.60.0.
If your app already uses Auto Linking and you upgrade to Repro React Native SDK 2.1.0 or above, it is recommended to follow the procedure below in order to make use of the new feature.
First run react-native unlink
to undo previous settings.
react-native unlink react-native-repro
iOS¶
Open your project in Xcode and remove the previously added Build Phase and Framework Search Path again. Close Xcode again and run pod install
.
cd ios
pod install
When running pod install
it is possible that an error message similar to the one below appears.
[!] The `<APPNAME> [<TARGET>]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/<longpath>.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
In that case, like the error message suggests, you will have to add $(inherited)
again to your Xcode projects Framework Search Path under Project Setting -> Your Target -> Build Settings.
Android¶
The maven repository lookup path that has been added in the install guide previously is still needed and should not be removed.