vietMaiExe Github contribution chart
vietMaiExe Github Stats
vietMaiExe Most Used Languages

Activity

05 Oct 2022

VietMaiExe

A React component for building Web forms from JSON Schema.

Forked On 05 Oct 2022 at 09:50:24

VietMaiExe

A React component for building Web forms from JSON Schema.

Forked On 05 Oct 2022 at 09:45:20
Issue Comment

VietMaiExe

Documentation getSubscriptions parameters

Please use the Discussion board if you want to get some help. Please use issues to report bugs.

Description

In documentation its saying: getSubscriptions(skuArr), also in example https://github.com/dooboolab/dooboolab.com/blob/main/src/components/pages/Sponsor.tsx its saying the same.

If we write it in the same way we will get an arror:

Parameter specefied as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter skuArr

After investigating and looking in the code I found it should be called as getSubscriptions({skus:skuArr })

Expected Behavior

Return subscriptions not an error

Screenshots

rniap code:

rniap example:

Environment:

  • react-native-iap: 10.0.3
  • react-native: 0.69.5 or 0.64 we tried both - its not related to react-native-version
  • Platforms (iOS, Android, emulator, simulator, device): android, ios

To Reproduce Steps to reproduce the behavior:

  1. Call initConnection()
  2. call getSubscriptions(skuArr)
  3. After getting an error try: getSubscriptions({skus: skuArr})

[Optional] Additional Context

Forked On 08 Sep 2022 at 02:41:19

VietMaiExe

that's exactly what I found. The documentation looks incorrect with the getSubscriptions and getProducts method. Regarding to the declared types, these 2 methods are accepting an object with skus as a key instead of an array with skus.

Commented On 08 Sep 2022 at 02:41:19