UNPKG

antd-mobile

Version:

<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />

9 lines 350 B
import { withNativeProps } from '../../utils/native-props'; import React from 'react'; import classNames from 'classnames'; const classPrefix = 'adm-safe-area'; export const SafeArea = props => { return withNativeProps(props, React.createElement("div", { className: classNames(classPrefix, `${classPrefix}-position-${props.position}`) })); };