Modal props missing from Hint component

オープン
#3,938 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@wanxiankai がすでに取り組んでいます。

2026年7月12日 から。

  • #4004 @omribz156 による — マージされずにクローズ
  • #4031 @wanxiankai による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react-native, typescript
領域
mobile

調査の方向性

Hint コンポーネントから始め、モーダルの処理を Dialog コンポーネントと比較します。特に、モーダルの 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分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wix/react-native-ui-lib のほかの issue

wix/react-native-ui-lib の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。