Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 2.1 KB

README.md

File metadata and controls

49 lines (35 loc) · 2.1 KB

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 TODOs 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 local development-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
  • lint - Run necessary code checks
  • format - Run code autoformat
  • test - Run tests
  • build:{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
  • submit:ios:{environment} - Submit iOS build to AppStore Connect
  • update:{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.

  1. Run the project using start script.
  2. Open the app using Expo Go or Android Emulator/iOS Simulator.
  3. Use any valid email and non-empty password for login into demo app.