React Native provides some methods to help you debug your code. App developer menu You can open the developer menu in the IOS simulator by pressing Command + D. On the Android emulator, you need to press Command + M.
You can access the developer menu by shaking the device or selecting Shake Gesture from the iOS Simulator Hardware menu. You can also use the keyboard shortcut ⌘D if the app is running in the iOS simulator, ⌘M if it is running in the Android emulator on Mac OS, and Ctrl + M if it is running on Windows and Linux. Alternatively, for Android, you can run the adb shell input keyevent 82 commands to open the development menu (82 is the menu key code).
Fast refresh is a feature of React Native that gives you almost instant feedback on changes to React components. When debugging, it is helpful to enable quick updates. Fast refresh is enabled by default, and you can toggle "Enable fast refresh" in the React Native developer menu. Most changes will be visible within 1-2 seconds when this option is enabled.