react-native-in-app-utils icon indicating copy to clipboard operation
react-native-in-app-utils copied to clipboard

Getting InAppUtils undefined

Open digiperfect-siddharth-pardeshi opened this issue 6 years ago • 2 comments

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.

alansuhe avatar Jul 10 '18 01:07 alansuhe

You need to manualy link the library, check manual linking

ravirupareliya avatar Jul 18 '18 06:07 ravirupareliya