Closed iSaadSalman closed 6 years ago
try to link it manually
@chirag04 and how would I do that? I'm bit new to RN. Thanks
I'm using expo as well just to let you know
@iSaadSalman pretty sure you have to eject your app to make use of modules requiring native code
expo doesn't allow adding native modules like this directly i think. like @raduflp said, you probably will have to eject. Going to close this. let me know if you need more info.
If anybody who faced this issue and having ios/Podfile
, try to run cd ios && pod install
.
And maybe you need to add following code to your Podfile to resolve duplicate React module error.
rn_path = '../node_modules/react-native'
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path
Reference Stack overflow answer Install Library (react-native-in-app-utils) using rnpm. you need to install rnpm.
1.npm install rnpm -g
rnpm will auto link your library for IOS.
@ZainaliSyed thank u so much. I used rnpm and it works!
First I installed with NPM like so:
npm install react-native-in-app-utils --save
and then with rnpm.Importing like so
const { InAppUtils } = NativeModules
and still gives me undefined