Mole Create React Native App
Install it once globally:
$ npm install -g @beisen/mole-create-react-native-app # or $ yarn global add @beisen/mole-create-react-native-app
Creating an React-Native App
To create a new app, run:
$ mole-create-react-native-app my-app $ cd my-app
This will create a directory called
my-app inside the current working directory. Inside
my-app, this will generate the initial project structure and install all of its dependencies.
If you're familiar with React Native already, you won't find any
Runs your app in development mode with an interactive prompt. To run it without a prompt, use the
Open it in the Expo app on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.
Runs the jest test runner on your tests.
npm run ios
npm start, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed.
npm run android
npm start, but also attempts to open your app on a connected Android device or emulator. Requires an installation of Android build tools (see React Native docs for detailed setup).
npm run eject
This will start the process of "ejecting" from Create React Native App's build scripts. You'll be asked a couple of questions about how you'd like to build your project.
Warning: Running eject is a permanent action. Please use a version control system, such as git, so you can revert back if necessary.