React Native SDK
Installation prerequisites
| OS | Minimum Version | Minimum Build Environment |
|---|---|---|
| iOS | 14 | swift-tools-version: 5.9 |
| OS | MinSDK |
|---|---|
| Android | 24 |
Generate a personal access token for GitHub
In your GitHub account:
- If you don't have a user, register to Github.
- Go to Settings › Developer Settings › Personal Access Tokens › Generate new token
- Make sure you select the following scopes: (“
read:packages") and Generate a token - Make sure to copy your new personal access token. You won't be able to see it again! Your only option if it's lost is to generate a new key.
Installing the React Native SDK
Add authentication
first add a .npmrc file to your root project with your token:
@dynamicyield:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
Install Package
Then you can use the react-native version via npm:
npm install @dynamicyield/[email protected]
Updated 18 days ago