stephy / CalendarPicker

CalendarPicker Component for React Native
806 stars 373 forks source link

Picker doesn't report new date #8

Closed adamkrell closed 9 years ago

adamkrell commented 9 years ago

After selecting a date in the UI, the onDateChange callback doesn't report the new selected date. It requires two taps to make it report correctly.

adamkrell commented 9 years ago

It might have something to do with React Native itself. I'm noticing a similar problem on another component. It seems state isn't updated right away. I did create a new project, however, to solely test your CalendarPicker component and I'm getting the same results. It takes two hits on the date to update the Text component with the selected date.