@molejs/mole-create-react-native-app

0.0.33 • Public • Published

Mole Create React Native App

Getting Started

Installation

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 ios or android directories in this project, just JavaScript. Once this installation is done, there are some commands you can run in the project directory:

npm start

Runs your app in development mode with an interactive prompt. To run it without a prompt, use the --no-interactive flag.

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.

npm test

Runs the jest test runner on your tests.

npm run ios

Like 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

Like 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.

Dependents (0)

Package Sidebar

Install

npm i @molejs/mole-create-react-native-app

Weekly Downloads

1

Version

0.0.33

License

none

Unpacked Size

16.5 kB

Total Files

3

Last publish

Collaborators

  • albert-zhang
  • luochongjie
  • jiayunqiu
  • liugenpeng
  • zhizhi_wang