I have followed the installation instructions and got the project to build successfully. Now, when I import Purchases in my javascript code I get the exception "Native module cannot be null".
The NativeModules
object imported from react-native
does not have the RNPurchases
module that the required by react-native-purchases
.
System
XCode 10
MacOS Mojave
React Native 0.50.4
The issue here is that the built binary of the RNPurchases
subproject is not automatically linked to the project.
General
tab in your project's target+
in Linked Frameworks and Libraries
libRNPurchases.a