react-native-date-picker icon indicating copy to clipboard operation
react-native-date-picker copied to clipboard

Android Application Crashes When Inline Date Picker Used in Custom Modal [New Architecture]

Open 0xCody opened this issue 1 year ago • 6 comments

Describe the bug On Android, when you place an inline date time picker inside a custom modal, using the new architecture, and you try to change the values of the spinner, the application will crash.

Expected behavior On Android new architecture, when an inline date time picker is placed inside a custom modal, the values of the modal will change as it does when not inside a modal, without crashing.

To Reproduce Add example code that reproduces the behavior.

import React from 'react';
import {
  Modal,
} from 'react-native';

import RNDateTimePicker from 'react-native-date-picker'

function App(): React.JSX.Element {
  return (
    <Modal
      visible
    >
      <RNDateTimePicker
        mode="datetime"
        date={new Date()}
      />
    </Modal>
  )
}

Smartphone (please complete the following information):

  • OS: Android
  • React Native version: 0.73.6
  • react-native-date-picker version: 5.0.0
  • gradle.properties: newArchEnabled=true

0xCody avatar Apr 12 '24 02:04 0xCody

Hi, thanks for reporting this. Could you confirm that this is still an issue in version 5.0.1?

henninghall avatar Apr 12 '24 08:04 henninghall

Hi Henning, appreciate the quick response! Unfortunately, I just confirmed this is still an issue in v5.0.1.

0xCody avatar Apr 12 '24 19:04 0xCody