Source

externalCode/shakeManagerApi.js

/**
 * @typedef {Object} ShakeMenuItem
 * @property { string } title
 * @property { Function } onPress
 */

/**
 * @class
 * Shake Manager Hooks.
 * Instance name: shakeManagerApi
  
   You can use it to customize and manage the shake menu items.
 * @example
 * externalCodeSetup.shakeManagerApi.METHOD_NAME
 */
export class ShakeManagerApi {
	menuItems = [];
	/**
	 * It adds custom menu items to the shake menu
	 * @param {ShakeMenuItem} _menuItems
	 * @example
	 * const menuItems = [{ title: "Say hi to user", onPress: () => Alert.alert("Hello user!")}]
	 *
	 *  externalCodeSetup.shakeManagerApi.addMenuItems(menuItems)
	 */
	addMenuItems = _menuItems => (this.menuItems = _menuItems);
}