https://github.com/dzek69/react-native-app-template
React native personal app template, with working tests, mocks, docs, linting
https://github.com/dzek69/react-native-app-template
android app-template boilerplate example ios javascript js react react-native template
Last synced: about 1 month ago
JSON representation
React native personal app template, with working tests, mocks, docs, linting
- Host: GitHub
- URL: https://github.com/dzek69/react-native-app-template
- Owner: dzek69
- Created: 2018-10-11T19:44:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T20:36:32.000Z (over 2 years ago)
- Last Synced: 2025-02-24T06:39:03.461Z (12 months ago)
- Topics: android, app-template, boilerplate, example, ios, javascript, js, react, react-native, template
- Language: JavaScript
- Size: 1.82 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# React Native app template repository
Empty app template for easier start.
Features:
- sane unit testing (as similar to web React as possible, uses `react-dom` just for testing) ready to go, uses Jest,
Enzyme and must.js
- eslint connected
- pure JS (no Flow)
- prepared for releasing into Play Store (manual to come)
## To start developing on Android with real device:
1. Run `yarn`
1. Run `yarn start` (keep it open)
1. Prepare your device [by forwarding development server port][1] - add your device id to `prepareDevice:*` commands
1. Run `yarn start:android`
## To rename application and change app id use
[react-native-app-rename][2]
## `yarn run` commands list:
- `start` - cleans cache and starts development packaging server (Metro) - **always run this after switching project
you work on**
- `start:android` - runs packaging server is not run and installs & starts the app in development mode on Android device
or emulator
- `start:ios` - same as above, but for iOS
- `build:docs` - builds documentation
- `build:release:android` - builds release version of app for Android
- `prepareDevice:[name_here]` - prepares real Android device for development by forwarding dev server port, you shoud
add your device here because you'll need to repeat that every time you reconnect your device
- `test` - runs unit tests
- `lint` - checks for js code style
- `lint:fix` - checks for js code style, fixing it automatically where possible
## TODO
- fix tests crashing when tested file imports an es module (file with an `export` statement)
[1]: https://facebook.github.io/react-native/docs/running-on-device#connecting-to-the-development-server-1
[2]: https://www.npmjs.com/package/react-native-app-rename