- Running applications
- Simulator Logs
You can also write native iOS (Objective-C) code with React Native, and get features such as Automatic Square Bracket Completion from Nuclide when doing so. Native Android code written in conjunction with React Native has minimal support.
All React Native features are currently available from the Command Palette.
You run the React Native Packager and Server from Nuclide and your application from the command line.
React Native Packager
From the Command Palette, choose
Nuclide React Native: Start Packager to start the React Native Server. The output in the
Console panel indicates if the React Native Packager started or if it encountered any errors.
The server runs on the default
port 8081. You can stop and restart the server at anytime.
Ensure that you are in the root directory of the React Native project, then run the application from the command-line:
$ react-native run-ios $ react-native run-android
This should bring up the Simulator with your running application inside.
From Nuclide, you can start a React Native development server, inspect React Native elements.
In order to use React Native within Nuclide, you must install it.
Loading a React Native Project
You open a React Native project the
usual way. Nuclide will automatically
establish that you have a React Native project by seeing the
from the root of your project.
React Native Server
Run the React Native Application
Nuclide provides an Element Inspector, where you can view and toggle properties of your application.
To see the actual elements highlighted in the Nuclide Element Inspector also highlighted in the
Simulator, you must enable the Simulator Inspector as well. Press
Ctrl-D on Linux) within
the Simulator and choose Show Inspector.