diff --git a/src/components/Popover/index.native.js b/src/components/Popover/index.native.js index 2ecdd8d35f1e..89e8a8b22fc2 100644 --- a/src/components/Popover/index.native.js +++ b/src/components/Popover/index.native.js @@ -1,8 +1,13 @@ +import _ from 'underscore'; import React from 'react'; -import {propTypes, defaultProps} from './PopoverPropTypes'; +import {propTypes as popoverPropTypes, defaultProps} from './PopoverPropTypes'; import CONST from '../../CONST'; import Modal from '../Modal'; -import withWindowDimensions from '../withWindowDimensions'; +import {windowDimensionsPropTypes} from '../withWindowDimensions'; + +const propTypes = { + ...(_.omit(popoverPropTypes, _.keys(windowDimensionsPropTypes))), +}; /* * This is a convenience wrapper around the Modal component for a responsive Popover. @@ -24,4 +29,4 @@ Popover.propTypes = propTypes; Popover.defaultProps = defaultProps; Popover.displayName = 'Popover'; -export default withWindowDimensions(Popover); +export default Popover;