How to update react native with latest version?
It is important to upgrade the existing react-native to the latest version in order to access more featural aspects that involve views, APIs, classes, arrow functions, template string, import and export modules, array destructing and development tools.
Following steps should need to be performed to update the react-native to the latest version:
- Update react native, react and Expo package versions for upgrading the expo projects in package.json
- Install the latest SDK version which is compatible with the latest version of react-native in the app.json file.
- Upgrade React Native CLI using the command:
- Install upgrade helper web tool for upgrading the applications
- Upgrade existing file using the command
- Perform troubleshoot activity to upgrade with react native CLI
BY Best Interview Question ON 29 Oct 2019