From 67d2f150ffba8c5a25327810dc094664064dad41 Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Sat, 19 Jun 2021 01:49:26 +0530 Subject: [PATCH] fix popover for native devices --- src/components/Popover/index.native.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/components/Popover/index.native.js b/src/components/Popover/index.native.js index 89e8a8b22fc2..924bcc7031e0 100644 --- a/src/components/Popover/index.native.js +++ b/src/components/Popover/index.native.js @@ -13,17 +13,20 @@ const propTypes = { * This is a convenience wrapper around the Modal component for a responsive Popover. * On small screen widths, it uses BottomDocked modal type, and a Popover type on wide screen widths. */ -const Popover = props => ( - { + const propsWithoutAnimation = _.omit(props, ['animationIn', 'animationOut', 'popoverAnchorPosition']); + return ( + -); + // Mobile will always has fullscreen menu + // eslint-disable-next-line react/jsx-props-no-multi-spaces + fullscreen + /> + ); +}; Popover.propTypes = propTypes; Popover.defaultProps = defaultProps;