Inherits from NSObject
Declared in RCTDevMenu.h

Overview

Developer menu, useful for exposing extra functionality when debugging.

Tasks

  •   shakeToShow

    Is the menu enabled. The menu is enabled by default if RCT_DEV=1, but you may wish to disable it so that you can provide your own shake handler.

    property
  •   profilingEnabled

    Enables performance profiling.

    property
  •   liveReloadEnabled

    Enables automatic polling for JS code changes. Only applicable when running the app from a server.

    property
  •   showFPS

    Shows the FPS monitor for the JS and Main threads

    property
  • – show

    Manually show the dev menu (can be called from JS).

  • – reload

    Manually reload the application. Equivalent to calling [bridge reload] directly, but can be called from JS.

  • – addItem:handler:

    Add custom item to the development menu. The handler will be called when user selects the item.

Properties

liveReloadEnabled

@property (nonatomic, assign) BOOL liveReloadEnabled
Discussion

Enables automatic polling for JS code changes. Only applicable when running the app from a server.

Declared In

RCTDevMenu.h

profilingEnabled

@property (nonatomic, assign) BOOL profilingEnabled
Discussion

Enables performance profiling.

Declared In

RCTDevMenu.h

shakeToShow

@property (nonatomic, assign) BOOL shakeToShow
Discussion

Is the menu enabled. The menu is enabled by default if RCT_DEV=1, but you may wish to disable it so that you can provide your own shake handler.

Declared In

RCTDevMenu.h

showFPS

@property (nonatomic, assign) BOOL showFPS
Discussion

Shows the FPS monitor for the JS and Main threads

Declared In

RCTDevMenu.h

Instance Methods

addItem:handler:

- (void)addItem:(NSString *)title handler:(dispatch_block_t)handler
Discussion

Add custom item to the development menu. The handler will be called when user selects the item.

Declared In

RCTDevMenu.h

reload

- (void)reload
Discussion

Manually reload the application. Equivalent to calling [bridge reload] directly, but can be called from JS.

Declared In

RCTDevMenu.h

show

- (void)show
Discussion

Manually show the dev menu (can be called from JS).

Declared In

RCTDevMenu.h