react-native打开一个日期控件

代码:

export default class XXX extends Component{

constructor(props){

super(props);

this.tomorrowDate=this.getTomorrow();

this.state={

chooseDate: this.tomorrowDate.getFullYear()+'-'+ this.tomorrowDate.getMonth()+'-'+ this.tomorrowDate.getDate(),

}



}

reder(){

return(

<View><Text onPress={()=>this.dateChoose(0)}>显示日期</Text></View>

);

}

}

猜你喜欢

转载自blog.csdn.net/qq_38933412/article/details/80702318