react-native-date icon indicating copy to clipboard operation
react-native-date copied to clipboard

How to use timepicker with initial date?

Open marcinj1 opened this issue 9 years ago • 1 comments

marcinj1 avatar Feb 28 '16 15:02 marcinj1

For example you can set a input date with today: <TextfieldWithFloatingLabel onFocus={this.dataRegistrazioneOnFocus} value={this.state.dataRegistrazione} placeholder="Data registrazione (aaaa-mm-gg)" />

Initialize date using state in constructor with a function getToday() constructor(props) { super(props); this.state = { dataRegistrazione: getToday(), } }

Lucagtii avatar Feb 28 '16 17:02 Lucagtii