@ronas-it/react-native-starter
v3.4.1
Published
React Native + Expo starter template: a demo app with configurations, project structure, testing setup, navigation, and some basic modules.
Downloads
8
Readme
React Native Starter
Ronas IT template for React Native + Expo projects.
What's included
- Build and submit configuration templates
- Feature-oriented project structure
- Code linting and formatting using ESlint & Prettier (with pre-commit auto-formatting)
- Testing environment setup with simple tests examples
- Common modules and basic components for a quick start
- Redux setup and entities CRUD implementation using RTK [Work-in-progress]
+ Demo app that interacts with some open API.
Usage
Init your project:
npx create-expo-app -t @ronas-it/react-native-starter
Follow TODO
s in a generated project to update your app configuration and clean up demo code.
Useful scripts
See package.json
for pre-defined scripts. You can run them using npm run {script}
or yarn {script}
:
start
- Start localdevelopment
-env server to develop with Expo Go- Run server locally for other environments:
start:{environment}
- To develop with Development client start server with
--dev-client
flag
- Run server locally for other environments:
lint
- Run necessary code checksformat
- Run code autoformattest
- Run testsbuild:{environment}
- Create builds for both platforms- Pass
-p {android|ios}
to run a platform-specific build - To create a Development client build run
build:debug
- Pass
submit:ios:{environment}
- Submit iOS build to AppStore Connectupdate:{environment}
- Publish OTA-update
Demo app
This project includes a demo application that simulates login and displays some demo users list. Data is populated from Go Rest Open API.
- Run the project using
start
script. - Open the app using Expo Go or Android Emulator/iOS Simulator.
- Use any valid email and non-empty password for login into demo app.