Open digiperfect-siddharth-pardeshi opened 6 years ago
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
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?