I'm using react-native-modal-datetime-picker
in my React Native app on iOS, and when the modal pops up, instead of having a range of dates to scroll through, it shows only the current date:
<DateTimePickerModal
datePickerModeAndroid={'spinner'}
mode={'date'}
is24Hour={false}
isVisible={this.state.isDatePickerVisible}
onConfirm={() => {}}
onCancel={() => {}}/>
[email protected]
[email protected]
Does anyone know how to approach solving this?
add display = 'spinner'
and inside ios->myappname->AppDelegate.m add these lines inside didfinishlaunch options;