React Native on iOS/Catalyst - How do I remove inspect?

288 views Asked by At

I have an iOS app developed via React Native running on macOS via Catalyst. It happened that I erroneously pressed something to enable inspection.

The fact is that I cannot remove it. How do I do?

See the screenshot below.

enter image description here

2

There are 2 answers

0
r4id4 On BEST ANSWER

I found a solution, run this code and the menu will be displayed on mac simulator

NativeModules.DevMenu.show();
10
AmerllicA On

There are five situations:

  • Physical mobile phone device: You should shake the iPhone/iPad and then a menu will be appeared. Tap on Hide Inspector

  • iOS Simulator: By pressing at the same time +d or ^++z you will be able to pop up the menu and tap on the Hide Inspector.

  • Android Emulator: By pressing at the same time +m the menu will be appeared and it has got the Hide Inspector too.

  • Window native app: To see the developer menu press Ctrl+Shift+D

  • macOS native app: To see the developer menu press ++D