chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
890 stars 185 forks source link

Getting InAppUtils undefined #182

Open digiperfect-siddharth-pardeshi opened 6 years ago

digiperfect-siddharth-pardeshi commented 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?

alansuhe commented 6 years ago

The same problem,after I updated react-native to 0.56.

ravirupareliya commented 6 years ago

You need to manualy link the library, check manual linking