Skip to content

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.

1. Clone the repository

sh
git clone https://github.com/getfizzup/trainingkit-reactnative
cd trainingkit-reactnative

2. Install JavaScript dependencies

sh
cd sample
yarn install

3. Configure Android credentials

Create sample/android/local.properties with your GitHub credentials:

properties
GithubUser=your-github-username
GithubToken=your-github-token

4. 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 android

The 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.