Repository: expo/expo
File: packages/expo-router/src/toolbar/elements.tsx (TypeScript)

Code before:
   */
  subtitle?: string;
  /**
   * If `true`, the menu item will be displayed as destructive.
   *
   * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/destructive) for more information.
   */
  destructive?: boolean;
  disabled?: boolean;
  hidden?: boolean;
  /**
   * Whether to hide the shared background when `sharesBackground` is enabled.
   *
   * Only available for root level menus.
   *
   * @see [Official Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground) for more information.
   *
   * @platform iOS 26+
   */
  hidesSharedBackground?: boolean;
  /**
   * Optional SF Symbol displayed alongside the menu item.
   */
  icon?: SFSymbol;
  /**
   * Custom image loaded using expo-image's `useImage` hook.
   * Takes priority over `icon` (SF Symbol) when both are provided.
   *
   * @example
   * ```tsx
   * import { useImage } from 'expo-image';
   * import { Toolbar } from 'expo-router/unstable-toolbar';
   *
   * const customIcon = useImage('https://picsum.photos/128', {
   *   maxWidth: 32,
   *   maxHeight: 32,
   * });
   *
   * <Toolbar.Menu image={customIcon} title="Menu">
   *   <Toolbar.MenuAction title="Action" onPress={() => {}} />
   * </Toolbar.Menu>
   * ```
   */
  image?: ImageRef | null;
  /**
   * If `true`, the menu will be displayed inline.
   * This means that the menu will not be collapsed
   *
   * > **Note*: Inline menus are only supported in submenus.
   *
   * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayinline) for more information.

Review comment (suggestion):
```suggestion
   * Custom image loaded using `useImage()` hook from `expo-image`.
```

Code after:
   */
  subtitle?: string;
  /**
   * If `true`, the menu item will be displayed as destructive.
   *
   * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/destructive) for more information.
   */
  destructive?: boolean;
  disabled?: boolean;
  hidden?: boolean;
  /**
   * Whether to hide the shared background when `sharesBackground` is enabled.
   *
   * Only available for root level menus.
   *
   * @see [Official Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground) for more information.
   *
   * @platform iOS 26+
   */
  hidesSharedBackground?: boolean;
  /**
   * Optional SF Symbol displayed alongside the menu item.
   */
  icon?: SFSymbol;
  /**
   * Custom image loaded using `useImage()` hook from `expo-image`.
   * Takes priority over `icon` (SF Symbol) when both are provided.
   *
   * @example
   * ```tsx
   * import { useImage } from 'expo-image';
   * import { Toolbar } from 'expo-router/unstable-toolbar';
   *
   * const customIcon = useImage('https://simpleicons.org/icons/expo.svg', {
   *   maxWidth: 24,
   *   maxHeight: 24,
   * });
   *
   * <Toolbar.Menu image={customIcon} title="Menu">
   *   <Toolbar.MenuAction title="Action" onPress={() => {}} />
   * </Toolbar.Menu>
   * ```
   */
  image?: ImageRef | null;
  /**
   * If `true`, the menu will be displayed inline.
   * This means that the menu will not be collapsed
   *
   * > **Note*: Inline menus are only supported in submenus.
   *
   * @see [Apple documentation](https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayinline) for more information.