web-ridge / react-native-paper-dates

Smooth and fast cross platform Material Design date and time picker for React Native Paper
https://www.reactnativepaperdates.com
MIT License
637 stars 161 forks source link

DatePickerInput ~ setModalVisible exposition in ref #393

Open Izocel opened 4 weeks ago

Izocel commented 4 weeks ago

Is your feature request related to a problem? Please describe. No bug, but very usefull feature.

Describe the solution you'd like Could you guys expose the modal visibily in the inputs ref ?

  function setModalVisible(value:boolean = false) {
    setVisible(value);
    return value;
  }

  React.useImperativeHandle(ref, () => ({
    setModalVisible
  }));
iM-GeeKy commented 4 weeks ago

PRs are welcome!

github-actions[bot] commented 4 weeks ago

Hey! Thanks for opening the issue. Can you provide more information about the issue? Please fill the issue template when opening the issue without deleting any section. We need all the information we can, to be able to help. Make sure to at least provide - Current behaviour, Expected behaviour, A way to reproduce the issue with minimal code (link to snack.expo.dev) or a repo on GitHub, and the information about your environment (such as the platform of the device, versions of all the packages etc.).