How to select correct gradle version in React Native - react-native

I never upgraded my gradle since 4.3 and now i decided to upgrade my libs. Firstly i updated my react native version to 0.63. And now thinking to upgrade gradle as well. But cannot decide which version to upgrade?
Is there any docs for that, or always it should be updated to latest version?
EDIT: Got these errors below while updating

Related

How to downgrade react native version after upgrading?

I was building an app on the version 0.70.6 then suddenly I saw the upgrade option after upgrading my app is not working on emulator. So, I want to downgrade the version. Please guide me.
I have tried this npm install react-native#a.b.c . But getting errors.
React Native Upgrade Helper will resolve your problem.
Left column: What's your current react-native version? => The version you want downgrade.
Right column: To which version would you like to upgrade? => The current version you are using.
Copy content in Left column and replace your current code(Right column).

No variants found for `react-native-reanimated`

I upgraded my React Native project to Gradle 7.0.2 and now when I open Android Studio it says No variants found for ':react-native-reanimated'. I'm using react-native-reanimated#1.13.3, and from the documentation for versions 1.x.x there's no real configuration, so I'm not sure how to approach this.
Has anyone run into anything similar? I'm using react-native#0.63.4, gradle 7.0.2, and Android Gradle Plugin 7.0.0.
You need to downgrade your Gradle version 7 to 6 because somehow Gradle 7 not work with react-native-reanimated 1.13.3. You can downgrade the version from gradle-wrapper.properties file like below:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-all.zip

How to update to the new version of React-Native on the current (WIP) project

What is the best way how can I update (WIP) React Native project to the newer version?
I tried to update my project but from that moment the project won't work. And the only solution was to go back to the previous version.
I found this manual solution (https://react-native-community.github.io/upgrade-helper/?from=0.61.5&to=0.63.2), but I hope that there is some automated solution?
Thanks!
There is no automatic solution. Update your libraries manually. Use this tool to view changes in react-native versions.
https://react-native-community.github.io/upgrade-helper/
Each version is different. Upgrading has always been sort of a pain point. The best solution is applying the changes shown in ReactNative Upgrade helper and then debugging the issues one by one or checking online for a matching version bump. in our case from 0.60 to 62.2 we had change and rebuild some swift files within XCode which we found out about using react native upgrade helper. What's not working right now?

React native upgrade path

We have had an app developed by a third party. Its currently on version 0.59.9 and we want to upgrade to version 0.61.5. What is the recommended way of doing this? going through each version upgrade or doing the upgrade in one go. My worry is so much has changed and it might be difficult to go through so many version in one iteration.
Thanks Nathan
As said on the Documentation, you can run react-native upgrade on the project directory to upgrade his react-native version to the newest.

Most efficient way to upgrade to React Native 0.60.5 from 0.59.2

I am currently at React Native version 0.59.2 but I would like to update my project to 0.60.5. I noticed that it now uses autolinking (pods for iOS) for the installed dependencies as opposed to using the react-native link(ing) anymore.
What would be the most efficient way to upgrade to this latest version? Would I delink all the dependencies I currently have?
How would I generate the Podfile, and do I need to include all the dependencies in there?
here is the proper way to upgrade your project's react-native version
please follow this:- https://react-native-community.github.io/upgrade-helper/