Skip to content

itsAmr/Typescript-React-Native-Starter

Repository files navigation

TypeScript + React-Native Template

dependencies Status devDependencies Status

Basic configuration for TypeScript + React-Native projects to get you started quickly (hopefully).

Prerequisites

  • Latest Node/NPM
  • Latest Yarn
  • Install react-native CLI npm install -g react-native
  • (Optional) Install VS Code

Initializing

  • Clone project

  • cd into project & npm install

  • (Optional) For VS Code:

    • Install TS lint extension
    • Install react-native tools extension

Launching App

Run npm run build to generate the build scripts and watch for changes.

Run react-native run-android to run the application on an Android device or emulator.

Extra:


npm test to run tests and generate coverage report.

npm run clean to clean your dist folder.

npm run lint to run TSlint on your source code.


Started/Forked from: Microsoft TS-RN Starter