Skip to main content
This is documentation for React Native 0.77, which is no longer in active development.
For up-to-date documentation, see the latest version (0.83).
Version: 0.77

DevSettings

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


Reference

Methods

addMenuItem()

tsx
staticaddMenuItem(title:string,handler:()=>any);

Add a custom menu item to the Dev Menu.

Parameters:

NameType
title
Required
string
handler
Required
function

Example:

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

reload()

tsx
staticreload(reason?:string):void;

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

Example:

tsx
<Buttontitle="Reload"onPress={()=>DevSettings.reload()}/>

AltStyle によって変換されたページ (->オリジナル) /