Menu onDismiss Animation

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

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

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
react-native, typescript
領域
mobile

調査の方向性

src/components/Menu/Menu.tsxから始め、特に643行目と654行目付近に関連するonDismissの処理を確認し、既存の非表示アニメーションのフローを調べてください。完了条件は、アニメーションの完了後にdismissコールバックが実行され、onDismissから可視性を変更してもそのアニメーションがキャンセルされなくなることです。

索引モデルが issue の本文から書いたものです。

説明

feature request

Is your feature request related to a problem? Please describe.
Some of the menu component's onDismiss handling (1,2) does NOT call hide(); if I change the menu's visibility within ondismiss it cancels the animation entirely

Describe the solution you'd like
make hide accepts a callback, calls the callback at the end of the animation, and replace the onDismiss to () => hide(onDismiss)

Describe alternatives you've considered
I might have totally missed the memo on how to control the menu visibility via onDismiss.

Additional context
Add any other context or screenshots about the feature request here.

主要言語
TypeScript
スター
14.5k
フォーク
2.3k
平均マージ
8日 7時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

callstack/react-native-paper のほかの issue

callstack/react-native-paper の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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