UNPKG

native-base

Version:

Essential cross-platform UI components for React Native

17 lines (13 loc) 547 B
import React from 'react'; import Box from '../../primitives/Box'; import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps'; import { usePropsResolution } from '../../../hooks/useThemeProps'; const Square = props => { const resolvedProps = usePropsResolution('Square', props); //TODO: refactor for responsive prop if (useHasResponsiveProps(props)) { return null; } return /*#__PURE__*/React.createElement(Box, resolvedProps); }; export default /*#__PURE__*/React.memo(Square); //# sourceMappingURL=Square.js.map