UNPKG

antd-mobile-rn

Version:

基于蚂蚁金服移动设计规范的 React Native 组件库

31 lines (24 loc) 1.05 kB
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import PropTypes from 'prop-types'; import { StyleSheet } from 'react-native'; import AbstractPicker, { getDefaultProps } from './AbstractPicker'; import pickerStyle from './style/index.native'; var pickerStyles = StyleSheet.create(pickerStyle); var Picker = function (_AbstractPicker) { _inherits(Picker, _AbstractPicker); function Picker() { _classCallCheck(this, Picker); var _this = _possibleConstructorReturn(this, (Picker.__proto__ || Object.getPrototypeOf(Picker)).apply(this, arguments)); _this.popupProps = {}; return _this; } return Picker; }(AbstractPicker); export default Picker; Picker.defaultProps = _extends({}, getDefaultProps(), { styles: pickerStyles }); Picker.contextTypes = { antLocale: PropTypes.object };