@told.club/sdk-rn
v0.2.3
Published
Told React Native SDK
Readme
@told.club/sdk-rn
Told React Native SDK
Install
Install Told React Native SDK by reading public documentation here : https://docs.told.club/
(Told Internal) Test demo app
This project use Yarn workspace. You cannot use npm.
In order to test the demo app, you need to install the development build on your phone. (For iOS, the development build is exclusively linked to your iPhone)
After, follow the next steps:
Note: commands are sent from the repository root
- Install sdk node modules:
yarn install - Install demo app node modules:
yarn example install - Start development server:
yarn example start - Scan generated QR code with the previously installed development build on your phone
You can find the example Told implementation code inside the following file: ./example/src/App.tsx
(Told Internal) Compile graphql schema
In order to update GraphQL schema, type: yarn compile
Compile Expo builds
[First time only] You'll need to install eas-cli package :
npm -g install eas-cli[First time only] Create an Expo account and be invited to the team
Next steps on https://expo.dev, send the email you used to create the account to your Told supervisor.
- [First time only] (iOS only) Add your iOS device
This step is needed if you want to use the test app on your iPhone
Prerequisite : you need to be added to the Apple team
Type the following command and follow the steps : eas device:create (Use the "website" option to easer phone profile install)
- Build development build
When you add a new device to the account, you'll need to create a new development build.
Type this command to build the app : eas build --platform all --profile development
License
MIT
