Skip to content

Let developer "Enable Live Reload" programmatically #2064

@hokster7

Description

@hokster7

I want an alternative way of activating this option without necessarily going through the RN dev menu. Reasons for this may be because the menu cannot be activated from the modal (see #2063), or that your shake gesture is already bound to something else useful in your app.

RN appears to persist the Enable Live Reload preference across sessions — I'm assuming it uses NSUserDefaults or some such, so a simple solution might be to document the exact key for which this preference is stored. I could then write into that key the value I want (YES, always) and enable it without the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions