chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
890 stars 185 forks source link

Linking the lib is not working #106

Closed engmsaleh closed 6 years ago

engmsaleh commented 7 years ago

I have installed the library using npm install and tried to link it using npm link but the project didn't link and I have to go and link it manually.

ryancoughlin commented 7 years ago

What version of RN and this package are you running? Also what did it fail on? It's helpful to supply more information.

react-native link should work with the latest.

mcanobbio commented 6 years ago

I have a Issue like that, I'm using the command react-native install react-native-in-app-utils and when I'm trying to use

const { InAppUtils } = NativeModules

I get InAppUtils undefined, also in Xcode don't see any of InAppUtils, I think must be a guide to linking manually, I linked manually and works.

NOTE Doesn't link anything when use react-native link only appears iOS module react-native-in-app-utils is already linked but in Xcode nothing appears and InAppUtils was undefined too.

chirag04 commented 6 years ago

@mcanobbio try to manually link react-native-in-app-utils if it's not already linked.

mcanobbio commented 6 years ago

thanks @chirag04 i did it and works fine 👍

chirag04 commented 6 years ago

Glad it worked out