0

I am setting up this GitHub repo on my local machine and I am facing issues. I have to upgrade the react-native version of a project from 0.58.6 to 0.65 or newer and also upgrade react version from 16.12.0 to 17.0.0 or newer and same goes for react-navigation.

Please help!

Nishant Giri
  • 1
  • 1
  • 3

1 Answers1

0

Upgrade the react-native version of a project from 0.58.6 to 0.65 or newer :

npx react-native upgrade 

(Use npx , npm , yarn etc. which you are using)

ou may specify a React Native version by passing an argument, e.g. to upgrade to 0.61.0-rc.0 run:

npx react-native upgrade 0.61.0-rc.0

Here you can change version according to your requirement.

If you want to upgrade your packages(navigation) :

npx react-native upgrade

Sometimes it doesn't work for me so add updated react-navigation manually. Don't worry it doesn't cause any conflict.

For updating React Version i suggest you to visit this :

Upgrading React version and it's dependencies

Jagroop
  • 1,777
  • 1
  • 6
  • 20