Modal props missing from Hint component

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

维护者通常 1 天内回复

@wanxiankai 已经在做这个了。

开始于 2026年7月12日。

  • #4004 来自 @omribz156 —— 已关闭,未合并
  • #4031 来自 @wanxiankai —— 未关闭

评估

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

调研方向

从 Hint 组件开始,将其对 modal 的处理方式与 Dialog 组件进行比较,重点关注 modal props 的暴露方式。在使用 onBackgroundPress 且锁定为横屏的 iOS Expo 应用中复现该问题,然后验证传入 supportedOrientations 等 modalProps 可以防止关闭时出错。

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

描述

bug

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
  1. Set up an app that is locked to landscape. For example in expo set this value in your app config: orientation: "landscape"
  2. Add a hint component that uses a modal. This happens to me as long as I provide the prop onBackgroundPress i.e. I don't need to pass useModal to get this error
  3. On dismissing the hint, see the following error
Image
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

环境准备

从这里开始

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

wix/react-native-ui-lib 的其他 Issue

查看 wix/react-native-ui-lib 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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