I am currently on version 0.45.1 which is pretty old. And I am trying to upgrade it so that other dependencies work as expected (they updated their libraries and they require 0.46.1 and above).
I am following this process:
- delete
node_modulefolder - change react-native version number in
package.json - run
yarn cache clean - run
watchman watch-del-all - run
yarnso that dependencies get downloaded and linked - restart packager
- reload app
App compiles and runs fine for "react-native": "^0.45.1", but some dependencies don't behave right (and they require 0.46 and above).
- Attempt to upgrade to 0.46.0:
I set react-native version number in
package.jsonto"react-native": "^0.46.0", and I follow the above process. I get this error:
Unable to resolve module 'react-native/Libraries/Renderer/src/renderers/native/ReactNativePropRegistry' from '/Users/MyUser/Projects/MyProject/node_modules/native-base/Components/Widgets/Button.js': Module does not exist in the module map
- Attempt to upgrade to 0.47.0:
I get same error as above.
- Attempt to upgrade to 0.48.0 (newest RN version):
I get same error as above.
Any help?
