Skip to content

Example react native typescript project. Demonstrates use of redux, proper unit & integration tests, documentation and so on.

Notifications You must be signed in to change notification settings

aleksgapp/react-native-typescript-example

 
 

Repository files navigation

Components with proper documentation and test cases. Uses TypeScript with redux. Contains few native android components to demonstrate integration.

I love writing tests and TDD. Some of the tests demonstrated in this project.

  • Unit tests for all components
  • Unit tests for redux reducers and store
  • Unit test for native components (mock)
  • Integration test for the containers (screens)

Node and dependency versions

At the time of this readme

  • Node 8.2.1
  • npm 5.3.0
  • Typescript 2.4.2

Dependencies

brew install node
brew install watchman
sudo npm install -g react-native-cli semistandard semistandard-format yarn tslint typescript typedoc

Git instructions

cd <project>
npm install

Running the project

Terminal 1 (Compiles typescript)

npm run tsc

Terminal 2

npm start

Terminal 3

npm test
npm run ios
npm run android

Generating documentation

npm run docs

Continuous integration

We have special scripts for continuous integration for testing and creating documentation.

npm run tsc:ci
npm run test:ci
npm run docs

About

Example react native typescript project. Demonstrates use of redux, proper unit & integration tests, documentation and so on.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 62.5%
  • Java 20.9%
  • Objective-C 11.0%
  • Python 4.3%
  • Swift 0.9%
  • C 0.3%
  • JavaScript 0.1%