naderio / helloworld-react-native

A boilerplate for mobile applications built with React, Redux, and React Native.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello World Mobile (React Native)

pipeline status coverage report dependencies

A boilerplate and reference implementation for mobile applications built with React, Redux, and React Native.

Preview

  • Android
  • iOS
  • Access credentials:
    • email: user@helloworld.nader.tech
    • password: password

References

Technology

Requirements

Usage

# install dependencies
npm install

# run bundler
npm start

# run on Android device/emulator
npm run android

# run on iOS device/simulator
npm run ios

# run tests
npm run test

# lint code
npm run lint

# format code
npm run format

Debugging

From DevTools

// use logger
Logger.debug('Hello World!');

// check if there is an authenticated session
AuthService.isAuthenticated();

// get state from Redux store
$store.getState().MyModule.myField;

// dispatch action from Redux store
$store.dispatch($state.MyModule.$myAction(/* args */));

Using the Template

Assuming target application with following properties:

  • code name is MyApp
  • display name is My App
  • pacakge id is com.myapp.client
  1. Initialize your application

    export \
      TEMPLATE_RN_VERSION='0.64.1' \
      TEMPLATE_CODE_NAME='MyApp' \
      TEMPLATE_DISPLAY_NAME='My App' \
      TEMPLATE_PACKAGE_ID='com.myapp.client' \
    ;
    
    npx react-native init $TEMPLATE_CODE_NAME --npm --version $TEMPLATE_RN_VERSION --template 'https://github.com/naderio/helloworld-react-native'
  2. Make sure to replace placeholders (look for @{) with appropriate values

About

A boilerplate for mobile applications built with React, Redux, and React Native.


Languages

Language:JavaScript 76.3%Language:Shell 12.7%Language:Java 5.6%Language:Objective-C 3.4%Language:Starlark 1.4%Language:Ruby 0.5%