Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.03 KB

File metadata and controls

49 lines (32 loc) · 1.03 KB

React Native & Typescript demo app

Get started

# Install dependencies
yarn

# Check your environment (make sure you fix all errors)
yarn run react-native doctor

# Run main react-native process
yarn run start --reset-cache

Then, continue in a different shell with the iOS or Android-specific instructions

Environment configuration

The API_URL is passed to the mobile app via environment variable. For local development, this can be configured using a file called .env in the app's root (this directory). By design, this file is not included in the version control so you'll have to create it yourself.

cp env-template .env

For iOS

Ensure Xcode is installed.

# Install cocoapods dependencies
(cd ios && pod install)

# Run iOS Simulator
yarn run ios

For Android

Ensure a virtual device has been set up in Android Studio.

# Run Android emulator
yarn run android

Known issues

  • react-native-dotenv caches values, use --reset-cache flag when starting main react-native process