Skip to main content
Join us for React Conf on Oct 7-8. Learn more.
This is unreleased documentation for React Native Next version.
For up-to-date documentation, see the latest version (0.81).
Version: Next

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 γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /