Skip to content

This is a improved fork with TypeScript from TCM Boilerplate [A React Native project template for building solid applications through separation of concerns between the UI, state management and business logic.]

License

Notifications You must be signed in to change notification settings

ozanmanav/react-native-boilerplate-ts

 
 

Repository files navigation

This is a Typescript powered fork repo. I constantly update this repo with the original repo. The last update date is 06.12.2020.

Logo

GitHub Release Date GitHub last commit GitHub commit activity GitHub commits since latest release GitHub top language

TheCodingMachine React Native boilerplate

This project is a React Native boilerplate that can be used to kickstart a mobile application.

The boilerplate provides an optimized architecture for building solid cross-platform mobile applications through separation of concerns between the UI and business logic. It is fully documented so that each piece of code that lands in your application can be understood and used.

If you love this boilerplate, give us a star, you will be a ray of sunshine in our lives :)

Requirements

Node 10 or greater is required. Development for iOS requires a Mac and Xcode 9.4 or up, and will target iOS 9 and up.

You also need to install the dependencies required by React Native.
Go to the React Native environment setup, then select React Native CLI Quickstart tab.
Follow instructions for your given development OS and target OS.

Quick start

To create a new project using the boilerplate simply run :

npx --ignore-existing react-native init MyApp --template @ozanmanav/react-native-boilerplate-ts

Assuming you have all the requirements installed, you can setup and run the project by running:

  • yarn install to install the dependencies
  • run the following steps for your platform

Android

  • only the first time you run the project, you need to generate a debug key with:
    • cd android/app
    • keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
    • cd ../.. to come back to the root folder
  • yarn start to start the metro bundler, in a dedicated terminal
  • yarn android to run the Android application (remember to start a simulator or connect an Android phone)

iOS

  • cd ios
  • pod install to install pod dependencies
  • cd .. to come back to the root folder
  • yarn start to start the metro bundler, in a dedicated terminal
  • yarn ios to run the iOS application (remember to start a simulator or connect an iPhone phone)

Digging Deeper

To learn more about this boilerplate, go to full documentation

License

This project is released under the MIT License.

About us

TheCodingMachine is a web and mobile agency based in Paris and Lyon, France. We are constantly looking for new developers and team leaders and we love working with freelancers. You'll find an overview of all our open source projects on our website and on Github.

About

This is a improved fork with TypeScript from TCM Boilerplate [A React Native project template for building solid applications through separation of concerns between the UI, state management and business logic.]

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 51.2%
  • Java 17.3%
  • Objective-C 12.3%
  • JavaScript 11.7%
  • Starlark 5.3%
  • Ruby 2.2%