This example implementation uses React Native. It's an Expo project created with create-expo-app.
-
Install dependencies:
npm install
-
Set up environment variables:
Copy
.env.exampleto.envand fill in the required values:cp .env.example .env
Required variables:
EXPO_PUBLIC_VERIFIED_API_KEY: Your Verified API key for session key generation (differs by environment). This is for demo purposes only and it should not be defined as an environment variable in Production.
-
Start the app:
npx expo start
In the output, you'll find options to open the app in a
- development build
- Android emulator
- iOS simulator
- Expo Go, a limited sandbox for trying out app development with Expo
You can start developing by editing the files inside the app directory. This project uses file-based routing.
When you're ready, run:
npm run reset-projectThis command will move the starter code to the app-example directory and create a blank app directory where you can start developing.
To learn more about developing your project with Expo, look at the following resources:
- Expo documentation: Learn fundamentals, or go into advanced topics with our guides.
- Learn Expo tutorial: Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.