dooboolab-community / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.dooboolab.com
MIT License
2.81k stars 641 forks source link

Error building expo managed project only when using react-native-iap #2279

Open axelmy318 opened 1 year ago

axelmy318 commented 1 year ago

Description

expo managed build always fails only when using react-native-iap

Environment:

To Reproduce Steps to reproduce the behavior:

  1. npx expo install react-native-iap
  2. npx expo run:android --variant release

error

I tried removing react-native-iap from the package.json and from my components and the build works just fine


Additional Context Inside my app.json I have

"expo" {
[...]
"plugins": [
      "react-native-iap",
      [
        "expo-updates",
        {
          "username": "axelmylc"
        }
      ]
    ],
[...]
}

Anyone has a solution for this ? Thanks

andresesfm commented 1 year ago

try --variant AmazonRelease according to the logs you posted

saravanakumargn commented 1 year ago

try https://react-native-iap.dooboolab.com/docs/faq/#api

{
  "expo": {
    "plugins": [
      [
        "react-native-iap",
        {
          "paymentProvider": "both"
        }
      ]
    ]
  }
}
MuhammadFaisal215 commented 5 months ago

@axelmy318 I was also facing this issue and I have resolved it by following this documentation. https://react-native-iap.dooboolab.com/docs/get-started Read the android configuration part.