UNPKG

antd-mobile

Version:
9 lines 350 B
import React from 'react'; import { withNativeProps } from '../../utils/native-props'; 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}`) })); };