Skip to content

IOS App crash when try to show time Picker after hide DatePicker  #951

@luucambo-hue

Description

@luucambo-hue

Bug report

Summary

App crash when try opening timePicker after hiding DatePicker

Reproducible sample code

BoTest.zip

Steps to reproduce

I use 2 RNDatePickers , one is with date mode, another is with time mode.
I have a button to show / hide datePicker and a button show timePicker.
I set defaultValue of timePicker 1/1/1980 00:00:00 ( in Date type)
I have minimumDate for datePicker is today
When I set value of datePicker to the day which is not today (tomorrow etc)
then I hide datePicker. I click to show timePicker => App close

Environment info

Expo go SDK 52, Client version 1017638

npx react-native info output:
react-native depends on @react-native-community/cli for cli commands. To fix update your package.json to include:

"devDependencies": {
"@react-native-community/cli": "latest",
}

Time zone: (UTC + 07:00) BangKok, Hanoi, Jakarta
"@react-native-community/datetimepicker": "^8.2.0"
IOS 16.7.10
Iphone 8 plus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions