If you're already familiar with JavaScript, React and React Native, then you'll be able to get moving quickly! Otherwise, it's highly recommended to get yourself familiar with these topic and then come back here:
To create a new React Native project with Rock, or migrate from React Native Community CLI, run:
The command will ask you to pick your preferred bundler and platforms.
In case you want to adopt Rock in existing project (which is a typical scenario), and automatic migrating with npm create rock
didn't work, please check the Migrating from Community CLI page for manual instructions.
Now that you have Rock configured, you should be able to use Metro's or Re.Pack's development server and bundle your application.
When developing your application, you'll need to run a dev server that will use a bundler like Metro or Re.Pack to bundle your JS and later serve it to an app running on a device or simulator.
To start the development server, run:
To build and run your app on an iOS simulator or device, run the run:ios
command:
To build and run your app on an Android emulator or device, run the run:android
command: