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 · 5 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.

@harshnagalla
Copy link

Getting this issue in 5.0.4 too

@oraylan
Copy link

oraylan commented Nov 9, 2024

Me too, same problem

@0xCody
Copy link
Author

0xCody commented Nov 9, 2024

Getting this issue in 5.0.4 too

Hi @harshnagalla, thank you for the update. Unfortunately, when trying to verify on the latest version (5.0.7), I am receiving the following and am unable to verify the original issue:
(NOBRIDGE) ERROR Warning: Error: Exception in HostFunction: Non-whitespace character found after end of conversion: "-11-09T14:12:58.762Z"
It looks to be related to this existing issue

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

4 participants