
env file in the Environment property as follows: ENVFILE=.env.staging. While developing a React Native app, most often you are focused on the JavaScript code, but you cannot forget that the native code is still there under the hood. Sooner or later, you will probably need to dive deep into it. Open the native subproject of your React Native app (probably placed in android or ios directory) in Android Studio or Xcode.Run your React Native app (on a device or an emulator/simulator).Here is the way how to debug the native code inside a React Native app.


In Android Studio open Attach debugger to Android process, check Show all processes and choose the device that your app is running on. Now you can debug the native code - the app code itself (which is probably not that necessary) as well as included libraries.In Xcode open Debug -> Attach to Process and choose your app process (it will likely be named as your app).
