react native offers a couple of methods that help in debugging your code.
in app developer menu
you can open the developer menu on the ios simulator by pressing command + d.
on android emulator, you need to press command + m.
reload − used for reloading simulator. you can use shortcut command + r
debug js remotely − used for activating debugging inside browser developer console.
enable live reload − used for enabling live reloading whenever your code is saved. the debugger will open at localhost:8081/debugger-ui.
start systrace − used for starting android marker based profiling tool.
show inspector − used for opening inspector where you can find info about your components. you can use shortcut command + i
show perf monitor − perf monitor is used for keeping track of the performance of your app.