You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ InAppBilling.open()
20
20
1.`npm install --save react-native-billing`
21
21
2.`rnpm link react-native-billing`
22
22
23
-
With this, [rnpm](https://github.com/rnpm/rnpm) will do most of the heavy lifting for linking,**but** you will still need add your Google Play license key to the `strings.xml` (step 5).
23
+
With this, [rnpm](https://github.com/rnpm/rnpm) will do most of the heavy lifting for linking.**But**, you will still need add your Google Play license key to the `strings.xml` (step 5). If you are using a React Native version less than v18.0 you will also have to do step 4.3 (override `onActivityResult`).
24
24
25
25
## Manual installation Android
26
26
@@ -43,7 +43,18 @@ With this, [rnpm](https://github.com/rnpm/rnpm) will do most of the heavy liftin
43
43
}
44
44
```
45
45
46
-
4. Register package in `MainActivity.java`
46
+
4. Edit `MainActivity.java`. Step 4.3 is only required if you are using a lower React Native version than 18.0 and/or your `MainActivity` class does not inherit from `ReactActivity`.
5.Add your GooglePlay license key as a line to your `android/app/src/main/res/values/strings.xml` with the name `RNB_GOOGLE_PLAY_LICENSE_KEY`.For example:
0 commit comments