SDK Version: 40
Platforms: Android
expo-in-app-purchases
Bug Report:
Unable to connect to InAppPurchases and gives not defined error for every main function it has.
Steps to Reproduce
npm install expo-in-app-purchases
npm install react-native-unimodules
In my PurchaseScreen.js
import * as InAppPurchases from 'expo-in-app-purchases';
componentDidMount() {
this.getDetails()
}
getDetails = async () => {
const history = await InAppPurchases.connectAsync();
}
Actual Behavior
I am getting
undefined is not an object (evaluating ‘_ExpoInAppPurchases.default.connectAsync’)
forawait InAppPurchases.connectAsync()
however if i simply do
await connectAsync();
I getCan't find variable: connectAsync
Seems like this is a major bug in expo. Is there a solution to make this working without moving to bare workflow ?