react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

feat(menu): overlay, surfaceProps, focusAnchorOnDismiss, focusSurfaceOnShown

Open btoo opened this issue 4 years ago • 2 comments
trafficstars

Summary

Adds the following props to Menu:

  /**
   * Whether the `anchor` should be focused when `onDimiss` has finished animating
   */
  focusAnchorOnDismiss?: boolean;
  /**
   * Whether the `anchor` should be focused when `onDimiss` has finished animating
   */
  focusSurfaceOnShown?: boolean;
  /**
   * Whether to use the overlay that is rendered behind the Surface and dismisses the Surface `onPress`
   */
  overlay?: boolean;
  /**
   * Additional props to add to the `Surface`
   */
  surfaceProps?: Partial<ComponentProps<typeof Surface>>;

btoo avatar Feb 04 '21 03:02 btoo

Hey @btoo, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

callstack-bot avatar Feb 04 '21 03:02 callstack-bot

Hello 👋, this pull request has been open for more than 2 months with no activity on it. If you think this is still necessary with the latest version, please comment and ping a maintainer to get this reviewed, otherwise it will be closed automatically in 7 days.

github-actions[bot] avatar Apr 11 '21 00:04 github-actions[bot]