Application Freezes when Date Picker is Opened and User Selects a Date
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, react-native
- Área
- mobile
Línea de trabajo
Start by identifying the iOS date picker implementation and its tests, then investigate how selecting a date affects the app when the picker is opened on an iPad running iOS 16.6. The report does not name a source file or test, and the reporter could not reproduce the freeze; done means reproducing the issue and confirming the app remains responsive after selecting a date.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug report
Summary
A user for my app just reported a bug. I cannot reproduce it but they have sent screenshots of the problem.
The user said that when they open the date picker, and select a date, the entire application freezes. Nothing will respond except the date popup window. Everything else is frozen. They have to close the app and restart it for it to work again.
The logs indicate the user is using an "iPad8,6" with a system version of "16.6". In the support email, the user said they installed the app right onto their MacBook Air 2020. If so, that is very strange because the app is only build for iOS, Android, and iPads.
I tried creating an emulator with that iPad version and os version but I could not reproduce the issue. I also noticed that their screenshot had vertical arrows but I could not get them to showup for me.
Reproducible sample code
import DateTimePicker, { DateTimePickerAndroid } from '@react-native-community/datetimepicker';
import BottomSheet from '@gorhom/bottom-sheet';
// ...
<DateTimePicker
testID="dateTimePicker"
value={myDate}
mode={'date'}
is24Hour={true}
maximumDate={maxDate}
onChange={(event, date) => {
setMyDate(date ?? new Date());
}}
/>
Steps to reproduce
- Open the date picker
- Select a date
- Try to close the date picker
Describe what you expected to happen:
Expected: Date picker closes and app responds
Actual: Date picker does not close and app is unresponsive
Environment info
package versions
@gorhom/bottom-sheet => 4.4.7
@react-native-community/datetimepicker => 7.6.1
This issue happens in two places. One of them is inside a bottom sheet. The other is not. Both places this issue happens. I am including the bottom sheet because I saw somewhere on here someone has a similar issue where their picker was also inside a bottom sheet.
npx react-native info output:
System:
OS: macOS 13.4.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 30.89 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 19.5.0 - ~/.nvm/versions/node/v19.5.0/bin/node
Yarn: Not Found
npm: 9.3.1 - ~/.nvm/versions/node/v19.5.0/bin/npm
Watchman: 2023.06.08.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/jordanwagner/.rvm/gems/ruby-3.0.2/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9619390
Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
Languages:
Java: 11.0.13 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: ^0.71.10 => 0.71.10
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Time zone name (If the problem you have is related to unexpected time / date. See list in https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
datetimepicker version: 7.6.1
iOS / Android version: iOS 16.6
originally, the datetimepicker version was 7.0.1. I installed the latest version but that did not help the user. They said they still had the issue.
Again, I could not reproduce this issue. I know I am suppose to only post reproducible issues but I figured maybe someone on here has some insight. I tried setting up multiple simulators but I could not. I also tried to install the app on my macbook but the app store doesn't give me the option. They said this only happens on their macbook, not their android. I am trying to get more info from them but have not heard back yet.
Thanks
- Lenguaje dominante
- JavaScript
- Estrellas
- 2.9k
- Forks
- 459
- Merge medio
- 4 d 16 h
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de react-native-datetimepicker/datetimepicker
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
react-native-datetimepicker/datetimepicker#1070 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
-
DateTimePickerAndroid.open() throws "Cannot read property" error on RN 0.78.3 new architectureAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
react-native-datetimepicker/datetimepicker#1047 · 6 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
react-native-datetimepicker/datetimepicker#1046 · 1 comentario ·
Todos los issues de react-native-datetimepicker/datetimepicker
Issues similares
-
cdx-audit output written to a pipe is cut off at 64 KiBQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug mode:cli
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Build produces empty forge.min.js: package.json lists "forge" instead of "node-forge"Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Fei2411/DeepSeek-Bot#963 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Miaotofu01/Study-Mate#244 ·
Los mantenedores suelen responder en 1 día
-
test-reliability
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Azure/azure-sdk-for-js#40672 · 1 reacción ·
Los mantenedores suelen responder en 1 día