Giter Site home page Giter Site logo

evilweed / react-native-starter-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from irontony/react-native-redux-toolkit-starter-app

0.0 1.0 0.0 2.88 MB

๐Ÿ“ฑ๐Ÿš€A POWERFUL React Native starter kit to bootstrap the start of your mobile app development

License: Mozilla Public License 2.0

JavaScript 6.10% Java 7.20% Ruby 5.82% Objective-C 9.01% Starlark 4.10% TypeScript 67.78%

react-native-starter-app's Introduction

React Native Starter App

A React Native template to bootstrap your next app!

License All Contributors

Issues

Build Build

Table of Contents


Installation ๐Ÿ“ฅ

> git clone https://github.com/IronTony/react-native-starter-app

> cd react-native-starter-app

# Install dependencies
> yarn

# if needed, setup iOS development environment
yarn setup:ios

See environment section for how to configure env variables.

See scripts section for how to run the app.


Environment Setup ๐ŸŒ

React Native Starter App environments variables management is based on a custom script and the app.json config file.

Define your environment variables inside app.json inside the environments object under the desired environment key (such as development, staging or production) and then run the app for the required env using one of the available run scripts (e.g. ios:dev).

If you want to use IDEs such Xcode or Android Studio, you have to set up the ENV variables with these commands:

  • yarn env:dev, to set the development ENV variables
  • yarn env:stage, to set the staging ENV variables
  • yarn env:prod, to set the production ENV variables

Scripts ๐Ÿ”ง

Run the app

To run the app use one of the following scripts:

  • yarn android:dev, to start the app on Android with the development environment variables.

  • yarn android:stage, to start the app on Android with the staging environment variables.

  • yarn android:prod, to start the app on Android with the production environment variables.

  • yarn ios:dev, to start the app on iOS with the development environment variables.

  • yarn ios:stage, to start the app on iOS with the staging environment variables.

  • yarn ios:prod, to start the app on iOS with the production environment variables.

Generate app icons

To setup the app icons:

  • create an image at least 1024x1024px
  • place it under /assets folder as icon.png
  • run
yarn assets:icons

Generate Splashscreen

To setup the app splashscreen:

  • create an image at least 1242x2208px
  • place it under /assets folder as splashscreen.png
  • run
yarn assets:splashscreen

Setup iOS

To setup the environment to run on iOS, run

yarn setup:ios

this will run cocoapods to install all the required dependencies.

Typescript (optional)

The use of Typescript in the project is not mandatory. You can just write all your code using plain Javascript. Our hint is to create all files as below:

  • files with logic and Views with tsx extension
  • files with Stylesheet and others with ts extension

To enable full Typescript checks, just open the tsconfig.json file and chage as below:

"noImplicitAny": true, // set to true to be explicit and declare all types now<br/>
"strict": true,  // enable it to use fully Typescript set of invasive rules<br/>

REMEMBER: the entry point file in the root of the project MUST be index.js


Roadmap ๐Ÿƒ

โœ… Initial Setup
โœ… Add Splashscreen (https://github.com/crazycodeboy/react-native-splash-screen)
โœ… Add Toolbox (https://github.com/panz3r/react-native-toolbox)
โœ… Create tree folders structure
โœ… Add redux
โœ… Add redux-persist (https://github.com/rt2zz/redux-persist)
โœ… Add React Native Debugger
โœ… Add reselect
โœ… Add redux-saga
โœ… Add i18next
โœ… Add react-navigation โค๏ธ
โœ… Add UI Design System (NativeBase)
โœ… Add Envvariables selection experimental way โš—๏ธโš—๏ธโš—๏ธ
โœ… Add Typescript (optional use. Read the DOC above)
โœ… Add Travis
๐Ÿšซ Add DependaBot


Contributors โœจ

Thanks goes to these wonderful people (emoji key):


IronTony

๐Ÿค” ๐Ÿ’ป ๐Ÿ“– ๐Ÿ› ๐Ÿšง ๐Ÿ“ฆ ๐Ÿ’ฌ ๐Ÿ‘€ โš ๏ธ ๐Ÿ’ก

Mattia Panzeri

๐Ÿค” ๐Ÿ“– ๐Ÿ”ง

This project follows the all-contributors specification. Contributions of any kind welcome!


License ๐Ÿ“œ

Licensed under Mozilla Public License Version 2.0

react-native-starter-app's People

Contributors

irontony avatar panz3r avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.