Skip to content

Feature Request: Add [Show Dev Menu] when specific error occurs. #883

Closed as not planned
@321paranoiawhy

Description

@321paranoiawhy

Introduction

When this specific error occurs:

Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle... 

Image

at the bottom of screen, we can see [DISMISS] and [RELOAD] button for developer convenience.

But can we have a button [Show Dev Menu]?

Details

Why we need this button?

So far, we have and only have two methods to achieve the function of the button:

  • Shake the device, when it is a physical device, we can shake it by hands; when it is a emulator, we can click some button to shake the emulator

  • use adb command when it is an android emulator:

    adb shell input keyevent 82

In most cases, these are enough. But in these cases none of those function well as supposed:

  • the physical device can not response to shake
  • the android emulator keyevent 82 has been used for another function

That's why we need the button for showing dev menu.

Some help

  • This link gives the source code of error text Unable to load script...
  • This link gives the source code of [DISMISS] and [RELOAD] button

Discussion points

Button name

The button name maybe one of these:

  • Show Dev Menu
  • Dev Settings

or use something else

Button Position

The button position maybe one of these:

  • at the bottom of Unable to load script... text with red background
  • at the top of [DISMISS] and [RELOAD] button

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions