Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find the following native modules after upgrading the react-native to latest version 0.61.4

Tags:

react-native

After upgrading the react-native version I am getting the following. And failed to run the build in simulator

After this, I have run react-native run-ios it shows all my packages are manually linked and you need to unlink all packages.

Also, can anyone clarify the react-native-config.js file is mandatory for this after updating to the latest react-native.

Always I open the app.Xcodeproj but the below shows I need to open app.xcworkspace. Can anyone clarify this?

warn The following packages use deprecated "rnpm" config that will stop working from next release:
  - react-native-fetch-blob: https://github.com/wkh237/react-native-fetch-blob#readme
  - react-native-orientation: https://github.com/yamill/react-native-orientation#readme
  - rn-fetch-blob: https://github.com/joltup/rn-fetch-blob#readme
Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
error Could not find the following native modules: BugsnagReactNative, react-native-camera, react-native-cookies, react-native-fast-image, react-native-fetch-blob, RNFS, RNGestureHandler, RNImageCropPicker, react-native-image-picker, RNImageRotate, BVLinearGradient, react-native-orientation, RNShare, RNSVG, RNVectorIcons, RNViewShot, react-native-webview, rn-fetch-blob. Did you forget to run "pod install" ?
info Found Xcode workspace "Fashion.xcworkspace"
like image 735
sejn Avatar asked Nov 22 '19 05:11

sejn


1 Answers

This should fix your issue.

rm -rf ios/Pods && rm -rf ios/build && cd ios && pod install && cd ../

rm -rf node_modules && rm yarn.lock && yarn install

PS: In react-native version 0.60 and above, native modules are now auto-linked. See the docs for more: https://facebook.github.io/react-native/blog/2019/07/03/version-60#native-modules-are-now-autolinked

like image 122
Sylva Elendu Avatar answered Sep 23 '22 00:09

Sylva Elendu