react-native-paper
react-native-paper copied to clipboard
feat(menu): overlay, surfaceProps, focusAnchorOnDismiss, focusSurfaceOnShown
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>>;
Hey @btoo, thank you for your pull request 🤗. The documentation from this branch can be viewed here.
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.