代码:

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(),

}

react-native打开一个日期控件

react-native打开一个日期控件

}

reder(){

return(

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

);

}

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2022-01-29
  • 2022-01-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2021-10-10
  • 2021-12-30
  • 2022-01-11
相关资源
相似解决方案