Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.49 KB

README.md

File metadata and controls

67 lines (48 loc) · 1.49 KB

Example app

Installation

yarn

For iOS, do the following:

cd ios
pod install
cd -

Running

First start the metro server:

yarn start

You can then either build for iOS:

yarn ios

or for Android with 2 variants: play or amazon.

yarn android:play
yarn android:amazon

To be able to get products/subscriptions from the App Store or Play Store you will need to follow a few steps:

  1. Open "Certificates, Identifiers & Profiles" > "Identifiers"
  2. Click the "Plus" button
  3. Select "App IDs", continue, select "App"
  4. Complete the form and submit:
    • Description: React Native IAP Example
    • Bundle ID (explicit): org.reactjs.native.example.IapExample
  5. Click "Register"
  1. Create a new app:
    • Platforms: iOS
    • Name: React Native IAP Example <SOME_STRING>
    • Sku: reactnativeiapexample
  2. Go to "In-App Purchases", click "Create"
  3. Select "Consumable" and submit:
    • Reference Name: com.cooni.point1000
    • Product ID: com.cooni.point1000 (can be the value defined in utils/constants.ts)
  4. Go back to the app, login with your account when the AppStore shows you the prompt
  5. Voilà!

Advanced usage

If you want more advanced one please refer to dooboolab.com/sponsor.tsx

In order to get products and subscriptions.