react-native-template
Our Recommended template for React Native projects.
Report Bug
ยท
Request Feature
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
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:
react-navigation
preconfigured with a common setuppackage.json
to start the app & deal with simulatorslint-staged
to run eslint checks on precommit
We hope it saves you as much time as it saves us! ๐
0.61.1
react-navigation
@emotion/native
for stylingWhile 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.
In order to use this template, follow these steps:
npx react-native init MyApp --template=https://github.com/echobind/react-native-template
cd MyApp
node ./setup
. A successful setup will give you the green light: โ
Setup completed!
During the setup process we will do the following:
bundle install
and pod install
so you don't have toyarn e2e:ios-debug
or yarn e2e:android-debug
(android emulator must be setup and open)If you get an error with an iOS Release build for ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o)
You should be able to resolve by updating the build settings
on an iPhone 12:
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:
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.
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.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)This template is available on npm at @echobind/react-native-template
. In order to publish a new release, please follow this process:
This is handled by semantic-release
and CircleCI. When a commit is merged into master
, it analyzes it, then runs a new release based on the type of commit (i.e fix is a patch whereas feat is considered a minor or feature relase).
We'd like to thank the internal team for making this template, and the following organizations:
The Echobind React Native template is open source software licensed as MIT.
Thanks goes to these wonderful people (emoji key):
Mike Cavaliere ๐ป ๐ |
Jenn ๐ป ๐ |
Chris Ball ๐ป ๐ |
Ryan Atkinson ๐ป ๐ |
This project follows the all-contributors specification. Contributions of any kind welcome!