antd-mobile-taro-ui
Version:
以antd-mobile为设计标准,基于taro框架的微信小程序组件库
10 lines • 401 B
JavaScript
import { withNativeProps } from 'antd-mobile/es/utils/native-props';
import React from 'react';
import classNames from 'classnames';
import { View } from '@tarojs/components';
const classPrefix = 'adm-safe-area';
export const SafeArea = props => {
return withNativeProps(props, React.createElement(View, {
className: classNames(classPrefix, `${classPrefix}-position-${props.position}`)
}));
};