react-native-in-app-utils
react-native-in-app-utils copied to clipboard
Getting InAppUtils undefined
import { NativeModules } from 'react-native' const { InAppUtils } = NativeModules
var products = [ 'com.xyz.abc', // my product id ]; InAppUtils.loadProducts(products, (error, products) => {
});
At the highlighted i am getting InAppUtils undefined due to which i can invoke loadProducts() function.
so can you help me out?
The same problem,after I updated react-native to 0.56.
You need to manualy link the library, check manual linking