Closed norbertschuler closed 3 years ago
I just found out the crash results from giving the component DateTimePicker
(from react-native-modal-datetime-picker
) a invalid date value as property minimumDate
. So this can be avoided by passing only valid date values. I am closing this issue again.
Bug report
Summary
I tried to run my react-native Android project with the Hermes engine enabled (
enableHermes: true
), but when I open a date picker (using react-native-modal-datetime-picker latest version 8.9.3 with @react-native-community/datetimepicker latest version 3.0.2), the app crashes while working well without using the Hermes engine:Environment info
react-native info
output:Library version: 3.0.2
Steps to reproduce
Build this pull request of our project https://github.com/Plant-for-the-Planet-org/treecounter-app/pull/2694 and set
enableHermes: true
at https://github.com/Plant-for-the-Planet-org/treecounter-app/pull/2694/files#r486988512Try to register a new tree and click on the date field to choose the date from a picker:![Screenshot_20200911-134250](https://user-images.githubusercontent.com/1532418/92921928-25b65c00-f45f-11ea-846a-15540d53fa0b.png)
The app crashes as following:
Describe what you expected to happen:
Reproducible sample code
Sorry, but I had not yet time to test this with a simple react-native app just using the date picker and nothing else.