Naxulanth / react-native-daterange-picker

A React Native component for picking date ranges or single dates.
MIT License
134 stars 89 forks source link

Controlled isOpen #8

Closed sdelhomm closed 3 years ago

sdelhomm commented 4 years ago

Hi, is it possible for a future release to get control on the isOpen state by passing a prop Thank you !

bhafenrichter commented 3 years ago

@sdelhomm I've forked this repo and added an 'open' property to handle this. I added a few more customizations as well if you're interested:

https://github.com/bhafenrichter/react-native-daterange-picker

Naxulanth commented 3 years ago

Added in 1.5.0 👍

You can now use the "open" prop to control state (if you wish), but this will disable the default action for closing the calendar by clicking the empty space.