Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Automatically adding child dependency pods in React Native

$
0
0

I made a repo sometime back https://github.com/irohitb/react-native-smart-statusbar

Earlier I was using react-native-device-info as a peer Dependency but recently I moved it to the dependencies

Now, When I install this npm repo, the pods associated with the ``react-native-device-info` aren't added to the project and hence it throws following 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

Can someone help me in figuring out a way when a user installs the repo, pods for react-native-device-infoalso get added?


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>