react-native-iap Native module cannot be null

223 Views Asked by At

I just ejected from expo because i wanted to use react-native-iap. I installed that module and then cd ios > pod install but after doing that i'm getting an error says "Native module cannot be null" I'm sure that the error because of this module because when i remove it's import statement, the error goes away. any solution? Thanks

1

There are 1 best solutions below

0
On

Try the below steps (manual linking from Xcode worked for me)

1: Add "RNIap.xcodeproj" in the Libraries folder.

2: Add "libRNLap.a" ,Target -> build phases -> link binary with libraries -> click on + icon -> and select libRNIap.a