henninghall / react-native-date-picker

React Native Date Picker is datetime picker for Android and iOS. It includes date, time and datetime picker modes. The datepicker is customizable and is supporting different languages. It's written with native code to achieve the best possible look, feel and performance.
MIT License
2.21k stars 338 forks source link

Pressing on selected date/time on iOS opens Numpad which cannot be disabled #849

Closed ayushcarrier closed 1 month ago

ayushcarrier commented 1 month ago

Describe the bug Pressing on selected date/time on iOS launches number pad to edit the current date/time which is undesirable in some scenarios (obscures view in Landscape mode)

Expected behavior Prop to disable Numpad in datepicker on iOS.

To Reproduce Press on selected date/time on iOS to activate the numpad.

  const [date, setDate] = useState(new Date());

  return (
    <View>
      <DatePicker
        modal
        open
        mode="datetime"
        date={date}
        title={'title'}
        onConfirm={(date): void => {
          setDate(date);
        }}
      />
    </View>
  );

Smartphone (please complete the following information):

https://github.com/user-attachments/assets/c42164e4-5f56-41b2-9ff6-1fd58b58019a

henninghall commented 1 month ago

Duplicate issue

ayushcarrier commented 1 month ago

@henninghall please provide link to the duplicate issue so I can follow.