How do I open react-native's dev menu on real device

后端 未结 6 2015
萌比男神i
萌比男神i 2020-12-13 01:38

I have seen already a number of border cases and strange developer interface.

From the \"shake your device\", which is really impractical, specially with a tablet

6条回答
  •  囚心锁ツ
    2020-12-13 02:22

    In the case you have a Xiaomi phone, the given answer will not work, because there is a security option prevented popup window to open and you need to allow it for your app :

    Go to Settings > Installed apps > [Your App Name] > Permission manager, and enable “Display pop-up window”.

    Shake again. The developer menu should pop up as expected with just a little shaking.

    Source: https://matthewphiong.com/debugging-react-native-app-on-a-xiaomi-phone

提交回复
热议问题