I'm trying to remove react-native-device-info
from our React Native project (in favor of the smaller react-native-version-number
).
I've taken these steps:
- yarn remove react-native-device-info
- cd ios && pod install
- Clean build and clear watchman/packager cache
- Delete and recreate the JS bundle
- grep for any references to react-native-device-info in entire project directory including node-modules (none found)
However, when I run the app I still get these errors. What am I missing?
[Thu Jul 23 2020 14:20:30.622] ERROR Error: @react-native-community/react-native-device-info: NativeModule.RNDeviceInfo is null. To fix this issue try these steps:
• For react-native <= 0.59: Run `react-native link react-native-device-info` in the project root.
• Rebuild and re-run the app.
• If you are using CocoaPods on iOS, run `pod install` in the `ios` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.
If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-device-info
[Thu Jul 23 2020 14:20:30.623] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
[Thu Jul 23 2020 14:20:31.746] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)