expo-dev-menu
Version:
Expo/React Native module with the developer menu.
31 lines • 710 B
TypeScript
/**
* An object representing the custom development client menu entry.
*/
export type ExpoDevMenuItem = {
/**
* Name of the entry, will be used as label.
*/
name: string;
/**
* Callback to fire, when user selects an item.
*/
callback: () => void;
/**
* A boolean specifying if the menu should close after the user interaction.
* @default false
*/
shouldCollapse?: boolean;
};
/**
* @hidden
*/
export type ExpoDevMenu = {
openMenu(): void;
closeMenu(): void;
hideMenu(): void;
addDevMenuCallbacks(callbacks: {
name: string;
shouldCollapse?: boolean;
}[]): void;
};
//# sourceMappingURL=ExpoDevMenu.types.d.ts.map