Home > Back-end >  Expo App Crashing when open @react-native-community/datetimepicker
Expo App Crashing when open @react-native-community/datetimepicker

Time:05-20

Hi I am building an Expo app and want to allow my users to pick a date and time.

I installed the React Native DateTimePicker library and implemented a basic RNDDateTimePicker component as directed in the Github. However, whenever I click on the TimePicker component, my app just crashes without logging any errors. My basic component is shown below. Does anyone know what the problem with this could be? Thank you.

 <RNDateTimePicker mode={'time'} value={startTime} onChange={(event, time) => { setStartTime(time) }}  />

CodePudding user response:

Can you check the start time. It should be new Date()

CodePudding user response:

I also had the same issue. Then I used "react-native-modal-datetime-picker" library. It worked for me.

  • Related