https://github.com/coloredcow/reactnative-init
Boilerplate code for ReactNative apps
https://github.com/coloredcow/reactnative-init
react react-native
Last synced: 3 months ago
JSON representation
Boilerplate code for ReactNative apps
- Host: GitHub
- URL: https://github.com/coloredcow/reactnative-init
- Owner: ColoredCow
- Created: 2021-12-06T06:49:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T06:20:03.000Z (almost 2 years ago)
- Last Synced: 2025-01-03T03:32:20.605Z (5 months ago)
- Topics: react, react-native
- Language: JavaScript
- Homepage:
- Size: 778 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ColoredCow ReactNative
Boilerplate code for your next ReactNative app! :rocket:## Pre-requisites
1. [Node && NPM](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
2. [Yarn](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable)## Installation
1. Clone the repository:
```sh
git clone https://github.com/coloredcow/reactnative-boilerplate project-name
```
2. Rename the files and foler for your project
To find out the files and directory that needs to be renamed, refer to the changes in this [PR](https://github.com/ColoredCow/reactnative-init/pull/1/files) (here app "HUGE" is renamed to "AwesomeProject").3. Set up the build config files:
```sh
cp src/env/debug.example.js src/env/debug.js
cp src/env/release.example.js src/env/release.js
```
4. Update the files `src/env/debug.js` and `src/env/release.js` to set up environment variables.
5. Install the dependencies:
```sh
yarn install
```
6. Build the app and launch the Android emulator:
```sh
npx react-native run-android --verbose
```