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

Date/Time pop up again even after date/time is selected in Android #355

Closed
yash-atreya opened this issue Jan 22, 2020 · 3 comments
Closed

Comments

@yash-atreya
Copy link

Environment

System:
OS: macOS 10.15.2
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 90.88 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.13.1 - /usr/local/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.13.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5977832
Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.4 => 0.61.4

Platforms

Android

Versions

  • Android: 28
  • iOS: N/A
  • react-native-modal-datetime-picker: 8.1.1
  • react-native: 0.61.4
  • react: 16.9.0

Description

I just updated to v8.1.1 and both Date and Time picker pop up twice even after OK is pressed and the selected time is confirmed.

Reproducible Demo

yarn add react-native-modal-datetime-picker @react-native-community/datetimepicker
npx react-native run-android
Select Date/Time, press OK and the same modal will pop up again.

@mmazzarolo
Copy link
Owner

Hey @Yash1511 , thanks for opening the issue.
This seems to be a known problem of @react-native-community/datetimepicker.
Please see if the workarounds reported in that issue work for you. Unfortunately we can't fix it on our side.
I'll keep the issue open for visibility.

@galvana
Copy link

galvana commented Jan 23, 2020

Hi @Yash1511, I ran into the same thing today. This comment was useful:

react-native-datetimepicker/datetimepicker#54 (comment)

I closed the modal in my onConfirm function before doing anything with the value and the issue went away.

@parth-koshta
Copy link

Hi @Yash1511, I ran into the same thing today. This comment was useful:

react-native-datetimepicker/datetimepicker#54 (comment)

I closed the modal in my onConfirm function before doing anything with the value and the issue went away.

Thanks @galvana

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

No branches or pull requests

4 participants