React Native Dates
React Native Date and date range picker / calendar for iOS and Android
API
type DatesType = range: boolean date: ?moment startDate: ?moment endDate: ?moment focusedInput: 'startDate' | 'endDate'
Demo


Example
In this example we disabled dates back in history and we shows selected dates bellow
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ ;;;; state = date: null focus: 'startDate' startDate: null endDate: null { const isDateBlocked = date; const onDatesChange = this; const onDateChange = this; return <View style=stylescontainer> <Dates onDatesChange=onDatesChange isDateBlocked=isDateBlocked startDate=thisstatestartDate endDate=thisstateendDate focusedInput=thisstatefocus range /> <Dates date=thisstatedate onDatesChange=onDateChange isDateBlocked=isDateBlocked /> thisstatedate && <Text style=stylesdate>thisstatedate && thisstatedate</Text> <Text style=stylesdate thisstatefocus === 'startDate' && stylesfocused>thisstatestartDate && thisstatestartDate</Text> <Text style=stylesdate thisstatefocus === 'endDate' && stylesfocused>thisstateendDate && thisstateendDate</Text> </View> ; } const styles = StyleSheet; AppRegistry;