Usage
After installing the extension, you should be able to start using the extension by opening your React Native or Expo project as a workspace in Visual Studio Code. If that's not the case and you have problems getting the extension to run, please check troubleshooting guide.
For a quick overview of the features the IDE provides, you can check Radon IDE website.
1. Open your project in vscode and start the extension panel
If your project setup is supported, there is no extra configuration that's necessary to get the project running.
The only thing you need to do is open your React Native of Expo project as workspace in vscode (File > Open Folder... option or using code
command with the folder name from terminal).
Once you have it open, you can start the extension panel in one of a few ways:
- When you open any file of your project to edit it, you can launch the extension from "Open IDE Panel" button in the editor toolbar:
- You can use "Radon IDE: Open IDE Panel" available in vscode's command palette:
- If you already had the panel open in this project before restarting the editor, it will automatically reopen in the same place.
2. Create simulator and emulator instances on the first run
When you open the IDE panel for the first time, it'll ask you to configure Android emulator of iOS simulator. Depending on which platform you want to run your app on first, click one of the options available at the initial screen:
You will be able to add or remove simulators later using the device menu in the left bottom corner of the panel.
In case the IDE cannot locate system images to use for the device, you will see an empty list when creating new emulator or simulator. Please follow the simulators section to learn how to manage system versions of Android emulators or iOS simulators that the IDE can use.
3. Decide on the location of the IDE panel
The main extension window can be either presented as one of the editor tabs, which is the default behavior, or as a side panel (in primary or secondary side panel location). To change between these modes, you can either use Radon IDE section in the VSCode settings, or use the dropdown menu from the right top corner in the IDE panel:
Here is how the IDE would look like when place in the side panel:
4. Wait for the project to build and run
After all the above steps, you should be able to see your app building and launching in the extension device preview. From there, you can use the simulator normally to navigate in your app and try out some of the developer experience enhancements that the IDE provides.
5. IDE features highlights
Visit Radon IDE website, for a nicely presented list of the feature highlights.
Click to inspect
Using the built-in inspector you can jump directly from preview to a file where your component is defined.
Use breakpoints right in VSCode
Without any additional setup the extension allows to add a breakpoints in Visual Studio Code to debug your React Native application. IDE also automatically stops at runtime exceptions showing you the exact line of code where they happened.
URL bar (currently supports expo-router only)
The Radon IDE integrates with your deep-linked application allowing you to jump around the navigation structure.
Logs integration
Radon IDE uses the built-in VSCode console allowing you to filter through the logs. The links displayed in the console are automatically linking back to your source code.
Develop components in isolation
Develop your components individually without distractions.
Install radon-ide
package and use preview
method from it to define the components that should render in preview mode:
import { preview } from "radon-ide";
preview(<MyComponent param={42} />);
The extension will display a clickable "Open preview" button over the line with preview
call that you can use to launch into the preview mode.
Adjust device settings on the fly
You can adjust text size and light/dark mode right from the Radon IDE. Focus just on your app without switching between windows.