Skip to main content
Version: 0.71

DevSettings

The DevSettings module exposes methods for customizing settings for developers in development.


Reference

Methods

addMenuItem()

static addMenuItem(title: string, handler: () => any);

Add a custom menu item to the developer menu.

Parameters:

NameType
title
Required
string
handler
Required
function

Example:

DevSettings.addMenuItem('Show Secret Dev Screen', () => {
Alert.alert('Showing secret dev screen!');
});

reload()

static reload(reason?: string): void;

Reload the application. Can be invoked directly or on user interaction.

Example:

<Button title="Reload" onPress={() => DevSettings.reload()} />