Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
0xCody opened this issue Apr 12, 2024 · 2 comments

Comments

@0xCody
Copy link

0xCody commented Apr 12, 2024

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
@henninghall
Copy link
Owner

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

@0xCody
Copy link
Author

0xCody commented Apr 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants