import React, { Component } from 'react' import { List, DatePicker } from '@sishuguojixuefu/antd-mobile-rn' import { SsDateProps } from '../utils/PropTypes' import ErrorTip from './helper/ErrorTip' import getFieldDecorator from '../utils/getFieldDecorator' import Label from './helper/Label' export default class SsDate extends Component { private fieldDecorator: any static defaultProps = { required: false, } componentWillMount() { const { form, id, initialValue, rules } = this.props this.fieldDecorator = getFieldDecorator(form, id, initialValue, rules) } private _onChange = (value: Date) => { const { onChange } = this.props onChange && onChange(value) } render() { const { label, required, form, id, placeholder, type } = this.props return ( {this.fieldDecorator( )} ) } }