

Learn more from the React Native official website. GoLand automatically chooses 8081, which is default for the React Native bundler. In this field, specify the port on which the bundler runs.

This connection may fail because GoLand by default uses localhost to start debugging while Expo expects 127.0.0.1 or an external IP address depending on what is selected in Connection field of the Metro bundler configuration. If you are using Expo, you may need to change the default bundler host to ensure successful connection with the debugger. In this field, specify the host where the bundler runs, the default value is localhost. When you initiate a debugging session, GoLand starts a new Chrome instance and attaches to it. You can also use DevTools together with GoLand. In debugging React Native applications, GoLand relies on the Chrome runtime, which is used by React Native itself. In this field, type the arguments to be passed to React Native, for example, specify the simulator type through the ‑‑simulator flag: ‑‑simulator="iPhone 4s". You can do it through the Node Package Manager (npm) or by running the sudo npm install ios-sim -g command, depending on your operating system. To emulate the iOS platform, you need to install the ios-sim command-line tool globally. To emulate the Android platform, use an Android virtual device. In this area, choose the platform for which the application is intended.ĭepending on your choice, GoLand will run the bundler with react-native run-ios or with react-native run-android. If your application uses Expo, clear the checkbox because this bundler takes care of the process itself. When you start debugging, GoLand waits for you to open your application in the simulator with the Remote debug enabled as described on the React Native official website Select the Build and launch checkbox if you are launching your application for the first time or if you have updated its native code since the last run.Ĭlear this checkbox if you haven't made any changes to the native code of your application since the last build.
