DevSettings module exposes methods for customizing settings for developers in development.
Reference
Methods
addMenuItem
Example:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
DevSettings 重要须知: The Vega SDK supports many of the React…
DevSettings module exposes methods for customizing settings for developers in development.
static addMenuItem(title: string, handler: () => any);
| Name | Type |
|---|---|
| title Required | string |
| handler Required | function |
DevSettings.addMenuItem('Show Secret Dev Screen', () => {
Alert.alert('Showing secret dev screen!');
});
static reload(reason?: string): void;
<Button title="Reload" onPress={() => DevSettings.reload()} />
此页面对您有帮助吗?
