nx-react-native icon indicating copy to clipboard operation
nx-react-native copied to clipboard

How do we upgrade react native?

Open justinhandley opened this issue 4 years ago • 2 comments

Hi There,

I was running into some remote build issues, and some of the problems I was having seem to be resolved in more recent versions of react native. I went to try and upgrade react-native, but neither of their upgrade paths really work, as the version of react-native I have installed doesn't have the file set they assume it does (for instance, the version of gradle for android is not the same as what they say it should be).

How do we upgrade react-native when it is built using this library?

justinhandley avatar Aug 06 '21 15:08 justinhandley

after you updated the version in package.json, you might still need to change some files manually as specified https://react-native-community.github.io/upgrade-helper/

xiongemi avatar Aug 10 '21 19:08 xiongemi

or you could upgrade @nrwl/react-native by running nx migrate latest to update all packages start with @nrwl or nx migrate @nrwl/react-native to update @nrwl/react-native. it will update react native for you.

xiongemi avatar Sep 25 '21 19:09 xiongemi