1.2.1 • Published 4 years ago

react-native-typescript-redux v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

React Native TypeScript Boilerplate

License React Native npm

Boilerplate for creating React Native applications with typescript

Show your support

Give a ā­ļø if you liked this!

šŸ¤ Contributing

Contributions are welcome! If you have questions, feature requests or a bug you want to report, please click Here to open an issue.

Installation

Open your terminal and type in

npx react-native init AwesomeProject --template react-native-typescript-redux

Folder Structure

.
ā”œā”€ā”€ app
│   └── src
│       ā”œā”€ā”€ @types
│       ā”œā”€ā”€ assets
│       │   ā”œā”€ā”€ animations
│       │   ā”œā”€ā”€ fonts
│       │   └── images
│       ā”œā”€ā”€ components
│       │   ā”œā”€ā”€ Button
│       │   ā”œā”€ā”€ Light-bulb
│       │   └── Switch
│       ā”œā”€ā”€ config
│       │   └── reactotron
│       ā”œā”€ā”€ helpers
│       ā”œā”€ā”€ i18n
│       ā”œā”€ā”€ router
│       ā”œā”€ā”€ screens
│       │   ā”œā”€ā”€ Demo
│       │   ā”œā”€ā”€ Home
│       │   └── Redux-demo
│       ā”œā”€ā”€ services
│       │   └── reactotron
│       ā”œā”€ā”€ store
│       │   ā”œā”€ā”€ ducks
│       │   │   └── counter
│       │   └── root-store
│       ā”œā”€ā”€ theme
│       ā”œā”€ā”€ utils
│       │   ā”œā”€ā”€ storage
│       │   └── hooks
│       └── App.tsx
ā”œā”€ā”€ android
ā”œā”€ā”€ docs
ā”œā”€ā”€ ios
└── index.js

Tech stack

How to use

If you don't have the react-native environment already setup on your machine, please follow this Link to setup everything you need to start

$ npm install
# OR with yarn
$ yarn
# check if your device is online by running the following command
# if running on a physical device, enable debug mode
$ adb devices
# this starts the metro server and points to reactotron ports automatically
$ yarn dev
# installing the app on the device
$ yarn run android