@datarockets/react-native-template-js

React Native template project with JS

Usage no npm install needed!

<script type="module">
  import datarocketsReactNativeTemplateJs from 'https://cdn.skypack.dev/@datarockets/react-native-template-js';
</script>

README

🚀 React Native Template JS

npm version

📦 What's included

  • Preconfigured react-navigation, redux, react-native-config and react-native-code-push
  • Two preconfigured environments: dev and prod
  • Easy components, screens and models generation by template

🧱 Structure

components

src/components/AComponent
├── index.js
└── styles.js

screens

src/screens/AScreen
├── index.js
├── styles.js
└── view.js

models

src/models/AModel
├── actions.js
├── api.js
├── reducer.js
├── saga.js
├── selectors.js
└── types.js

🏗 Usage

Simply start you project using the template:

npx react-native init MyApp --template @datarockets/react-native-template-js

If you experience issue initializing the project with the template try to use the latest CLI explicitly:

npx react-native@latest init MyApp --template @datarockets/react-native-template-js