2.0.0 • Published 8 years ago
@gigster/block-create-react-native-app v2.0.0
block-create-react-native-app
| Role | Name | Slack | |
|---|---|---|---|
| Product Owner | Frances Haugen | frances@gigster.com | @frances |
| Maintainer | Casey Barbello | casey@gigster.com | @casey |
| Maintainer | Mark Miyashita | mark.miyashita@gigster.com | @mark |
Overview
This block generates a simple React Native mobile app using create-react-native-app v1.0.0 as a boilerplate that we modify.
Usage
Add the following to your gig.yaml to create a new block called mobile using block-create-react-native-app. Make sure to replace VERSION with the specific version of the module. The latest version can be found here.
blocks:
- name: mobile
location: 'npm:@gigster/block-create-react-native-app@VERSION'After generating your project, you can cd into the new mobile directory. To launch the packager, simply run:
yarn install
yarn startFrom there you will have options to run your app on a mobile device or emulator.
Note: The packager may request that you either install watchman or increase your file limits with the following commands:
sudo sysctl -w kern.maxfiles=5242880
sudo sysctl -w kern.maxfilesperproc=524288You must do one of these to get your app up and running.