Appearance
Quickstart
This quickstart uses the demo app included in the trainingkit-reactnative repository to validate the full workout launch flow without building a new app from scratch.
- Demo app repository: https://github.com/getfizzup/trainingkit-reactnative
1. Clone the repository
sh
git clone https://github.com/getfizzup/trainingkit-reactnative
cd trainingkit-reactnative2. Install JavaScript dependencies
sh
cd sample
yarn install3. Configure Android credentials
Create sample/android/local.properties with your GitHub credentials:
properties
GithubUser=your-github-username
GithubToken=your-github-token4. Install iOS pods
macOS only
Steps 4 and the yarn ios command in step 5 require a Mac with Xcode. To try only the Android flow, skip to yarn android.
From sample/:
sh
cd ios
pod install
cd ..If pod install fails because TrainingKit.xcframework is missing, fetch it from the repository root (the fetch:ios-trainingkit script lives in the package's root package.json, not in sample/), then reinstall pods:
sh
cd .. # back to the repository root
yarn fetch:ios-trainingkit
cd sample/ios
pod install
cd .. # back to sample/5. Run the demo app
sh
yarn ios
# or
yarn androidThe demo app connects to the FizzUp demo GraphQL endpoint. It lists available workouts and launches the native workout experience when a workout is selected.
Next steps
- Installation: Integrate the package into an existing React Native app.
- Usage: Wire Apollo, list workouts, and launch a session in your own app.
- Authentication: Understand the device identifier and token flow.
