Opening datepicker inside a modal causes flickering!

未关闭
#870 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
ios, javascript, react-native
领域
frontend, mobile

调研方向

Start with the linked Snack repro and compare the datepicker’s behavior in a production build on an iPhone with a physical home button against Expo Go and the simulator. The issue identifies modal presentation through @react-navigation/native as the trigger, but does not name the relevant source files or tests. Done means opening the datepicker in that setup no longer makes the screen flicker.

由索引模型根据 Issue 内容生成。

描述

This happens with @react-navigation/native using screen presentation: "modal"

When running a production installation of my app on my iPhone SE (3rd gen), opening the datepicker inside of the screen makes the whole screen jump (flicker).

However this does not happen when running the app using the expo go on a real device nor on a simulator. This only happens when the app binaries has been built, it also only happens on phones with physical home buttons.

link to repro

Video of current behaviour.

https://github.com/react-native-datetimepicker/datetimepicker/assets/96067238/cbb4a57f-77bf-4463-97c1-b1d398075c04

Video of expected behaviour.

https://github.com/react-native-datetimepicker/datetimepicker/assets/96067238/f9fab734-ad07-4240-8a8f-5523330b430c

主要语言
JavaScript
星标
2.9k
派生
459
平均合并
4 天 16 小时
30 天内合并 PR
5

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

react-native-datetimepicker/datetimepicker 的其他 Issue

查看 react-native-datetimepicker/datetimepicker 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。