react-native-device-info

How do I prevent react-native-device-info causing React ambiguity on my setup?

喜你入骨 提交于 2019-12-22 17:22:09
问题 I'm running into a problem with installing react-native-device-info into an existing react-native project (created using create-react-native-app and then ejecting) I run: yarn add react-native-device-info yarn install react-native link react-native-device-info cd ios && pod install & cd .. pod install installs RNDeviceInfo , but also React as a dependency? I then run yarn ios as normal. The MetroBundler fails with: ``` This warning is caused by a @providesModule declaration with the same name

How do I prevent react-native-device-info causing React ambiguity on my setup?

*爱你&永不变心* 提交于 2019-12-06 06:12:31
I'm running into a problem with installing react-native-device-info into an existing react-native project (created using create-react-native-app and then ejecting) I run: yarn add react-native-device-info yarn install react-native link react-native-device-info cd ios && pod install & cd .. pod install installs RNDeviceInfo , but also React as a dependency? I then run yarn ios as normal. The MetroBundler fails with: ``` This warning is caused by a @providesModule declaration with the same name across two different files. Loading dependency graph, done. error: bundling failed: ambiguous