My thoughts on upgrading ten versions of React Native
Some tips for making a React Native upgrade a little more bearable: the right tools, one platform at a time, and knowing when to take a break.
- Published
- Language
- EN
- Reading
- 1 min read
Written in 2023. Some details may be out of date.
These are my thoughts after upgrading a React Native app across about ten versions.
Use the tools that already exist
The right tools and guides cut down the problems a lot. Where can you find them? In the React Native communities ↗.
React Native Upgrade Helper is a must-have
The Upgrade Helper ↗ shows which files change between two React Native versions, and it adds notes with more context.
Communities
Ask about specific problems, find solutions and add context to questions other people already asked.
Focus on one platform, then the next one
Your goal is to build the app for that one platform.
iOS
- Update the native files.
- Don’t touch
project.pbxproj. - Update the pods.
Android
- Focus on the
build.gradlefiles. - Update the other native files.
Rest, then try again
Upgrading a React Native app can be hard. If you’re stuck and not making progress, take a break: go for a walk, take a short nap or talk with your friends.
Then come back and try again. You’ll have the energy for another round.
I hope this helps someone out there. You can do this.