Modal props missing from Hint component
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react-native, typescript
- 领域
- mobile
调研方向
从 Hint 组件开始,将其对 modal 的处理方式与 Dialog 组件进行比较,重点关注 modal props 的暴露方式。在使用 onBackgroundPress 且锁定为横屏的 iOS Expo 应用中复现该问题,然后验证传入 supportedOrientations 等 modalProps 可以防止关闭时出错。
由索引模型根据 Issue 内容生成。
描述
Description
There's no ability to pass modal props to the Hint component and this causes an issue with my app due to needing to add supportedOrientations
Related to
- Components
- Demo
- Docs
- Typings
Steps to reproduce
- Set up an app that is locked to landscape. For example in expo set this value in your app config:
orientation: "landscape" - Add a hint component that uses a modal. This happens to me as long as I provide the prop
onBackgroundPressi.e. I don't need to passuseModalto get this error - On dismissing the hint, see the following error
Expected behavior
Allow passing modalProps, similar to the Dialog component
Environment
expo: ~54.0.25
react-native-ui-lib: 8.2.2
uilib-native: 5.0.1
Affected platforms
- Android
- iOS
- Web
- 主要语言
- TypeScript
- 星标
- 7.2k
- 派生
- 749
- 平均合并
- 29 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
wix/react-native-ui-lib 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
wix/react-native-ui-lib#4022 ·
维护者通常 1 天内回复
-
SortableGridList does not forward props to its inner ScrollView (inconsistent with SortableList)可能已有人在做 @yinminqian 于 172 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
wix/react-native-ui-lib#4002 ·
维护者通常 1 天内回复
-
RN 0.85.0 StyleSheet.absoluteFillObject is removed可能已有人在做 @ChrisJamesC 于 79 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
wix/react-native-ui-lib#3965 · 3 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
asBaseComponent: stale module-level colorScheme prevents re-render on scheme switch back可能已有人在做 @huytdps13400 于 33 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 85/100
wix/react-native-ui-lib#3945 ·
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 35/100
wix/react-native-ui-lib#4044 · 1 条评论 ·
维护者通常 1 天内回复
查看 wix/react-native-ui-lib 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
transitmatters/shutdown-tracker#155 ·
维护者通常 2 天内回复
-
bug triaged
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
"Claude Code request is missing its initial user message" when the prompt starts with an image path未关闭
难度 2/5 1-3 小时 新手友好度 84/100
earendil-works/pi-claude-code#31 ·
维护者通常 8 天内回复
-
bug pending triage
难度 1/5 1 小时以内 新手友好度 92/100
privatenumber/cleye#48 ·