question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] - TimePicker instant crashing app

See original GitHub issue

My application crashes as soon as I open TimePicker(only on android, iOS works fine). Before everything works fine, but some day just start crashing. I tried already TimePickerAndroid original from react-native and it’s work, there is no app crashing. Please help!!!

My code is:

<DateTimePicker mode="datetime" datePickerModeAndroid={"time"} isVisible={true} onConfirm={this._handleDatePicked} onCancel={this._hideDatePicker} />

Environment: OS: macOS High Sierra 10.13.6 Node: 10.1.0 Yarn: Not Found npm: 5.6.0 Watchman: 4.9.0 Xcode: Xcode 9.4.1 Build version 9F2000 Android Studio: 3.1 AI-173.4819257

Packages: (wanted => installed) react: 16.3.1 => 16.3.1 react-native: 0.55.4 => 0.55.4

Repo version(I already tried last version, did not help) “react-native-modal-datetime-picker”: “^5.1.0”,

Thanks in advance, kind regards.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mmazzarolocommented, Nov 8, 2018

Thank you @arthur31416 , I guess it’s just a leftover of an old API change

1reaction
arthur31416commented, Nov 8, 2018

Hi,

I ran into the same issue when specifying datePickerModeAndroid="calendar", thinking it was the default value. It crashes the app as soon as I change the date.

Turns out the default value is not "calendar" as specified in the read me but "default" https://github.com/mmazzarolo/react-native-modal-datetime-picker/blob/6932b8579334b0a5a3bfeaee6366a2e29f15d831/src/CustomDatePickerAndroid/index.js#L22

Anyway, the fix is easy: use the actual default value by omitting the datePickerModeAndroid prop but I think this is still a bug 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android TimePickerDialog. app crashes when setting time ...
Android TimePickerDialog. app crashes when setting time more than current time · Your error is occuring because of the line newTime.set(hourOfDay ...
Read more >
Timepicker randomly crash on Android release version · Issue ...
Description. It's a hard crash randomly when somebody is opening the default Timepicker( TimePickerAndroid ) on android(release version).
Read more >
Pickers | Android Developers
Android provides controls for the user to pick a time or pick a date as ready-to-use dialogs. Each picker provides controls for selecting ......
Read more >
Introduction to mobile monitoring | New Relic Documentation
Crash analysis workflow with mobile monitoring. A workflow to identify and resolve mobile app crashes using New Relic.
Read more >
[Solved]-Time Picker makes my App crash with Error: E ...
[Solved]-Time Picker makes my App crash with Error: E/libprocessgroup: failed to make and chown /acct/uid_10058: Read-only file system-android-Java.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found