Giter VIP home page Giter VIP logo

react-native-template's Introduction

react-native-template


Logo

react-native-template

Our Recommended template for React Native projects.

Report Bug ยท Request Feature


Table of Contents

Quickstart

To get started with our template, run one of the following commands:

# using npx, install our latest version from npm
npx react-native init MyApp --template=@echobind/react-native-template

# using npx and the github repo directly
npx react-native init MyApp --template=https://github.com/echobind/react-native-template

# using yarn & the react-native cli
yarn global add react-native-cli
react-native init MyApp --template=https://github.com/echobind/react-native-template

If you see an error after installing using the first option, pass the flag --ignore-existing and run:

npx --ignore-existing react-native init MyApp --template=@echobind/react-native-template

About The Project

Here at Echobind, we value developer productivity. After having built lots of React Native projects, we decided to put together our own template to speed up development. Our template includes the following:

๐Ÿ† Dev Productivity:

  • Hygen templates to easily generate components, screens, and utils with tests and stories.
  • vscode settings for common overrides (๐ŸŽจ Colors, formatOnSave and rulers width that matches prettier)
  • default Fastlane scripts for icon generation
  • global styles and colors
  • react-navigation preconfigured with a common setup
  • Pre-configured scripts in package.json to start the app & deal with simulators
  • Setup lint-staged to run eslint checks on precommit
  • Setup the app for TypeScript

We hope it saves you as much time as it saves us! ๐Ÿ‘

Built With

Getting Started

Prerequisites

While not required, we recommend using a version manager for Ruby and Node. Some popular version managers are:

** Ruby **

** Node **

Follow the install docs for the version manager of your choice.

During the setup proceess, we will automatically check the versions on your machine and prompt you to install anything you're missing.

Usage

In order to use this template, follow these steps:

  1. Initialize a new react-native app: react-native init MyApp --template=https://github.com/echobind/react-native-template
  2. Change directories into your new app: cd MyApp
  3. Run the setup script: node ./setup. A successful setup will give you the green light: โœ… Setup completed!

During the setup process we will do the following:

  • Setup a display name for your app
  • Setup a bundle identifier (ex: com.myapp.mobile)
  • Use Solidarity to ensure your environment has all expected dependencies installed
  • Run bundle install and pod install so you don't have to
  • Setup placeholder icon and a splash screen

CI / Deployment:

In order to set up CI/Deployment, we've created custom hygen templates to save you time. These live in our hygen-templates-echobind repository. You'll find installation instructions, which will allow you to set up the following:

  • CircleCI preconfigured for React Native. Fast build times!
  • Fastlane lanes for alpha, beta, and production releases. These should be run on CI only!
  • AppCenter integration for easy alpha distribution

After installing those, head into the "Setup CircleCI" docs in ./docs/circle-ci.md, which will walk you through the installation.

For more info, please follow the instructions in the hygen-templates-echobind repo.

Docs

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Acknowledgements

We'd like to thank the internal team for making this template, and the following organizations:

License

The Echobind React Native template is open source software licensed as MIT.

react-native-template's People

Contributors

alvincrespo avatar cball avatar gabriel-martin avatar gprocell927 avatar isaiahgrey93 avatar jsjoeio 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.