Skip to content

aurity/boilerplate_ts_rn

Repository files navigation

Example App

Source code for the Web & the React Native app for iOS and Android.

Project dependencies

To use the version of Node set in the .nvmrc file run:

nvm install && nvm use

Build/Run

Start React Native server:

yarn start

Build & Run the source-code with Typescript:

# Build & Run iOS
yarn start:ios

# Build & Run Android
yarn start:android

Run multiple simulators

  • cd /Applications/Xcode.app/Contents/Developer/Applications
  • open -n Simulator.app
  • Go to new simulator Hardware > Device > Chosen iOS version > and choose any of the other iOS devices

Tests

To run the tests use:

# To run the unit tests. Report is in './.coverage'
yarn test:unit

# To update snapshots
yarn test:unit -- -u

For development with TypeScript

yarn ts