callstack / callstack/react-native-paper

Menu + Navigation is not clearing the PortalManager

オープン
#4,319 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
Portal question
主要言語
TypeScript
スター
14.5k
フォーク
2.2k
平均マージ
5日 23時間
マージ済み PR(30日)
12

説明

I am running into an issue that if a navigate on a menu item press, the PortalManager is not getting cleared out and then capturing subsequent screen interactions. I am doing some pretty simple navigation using the following code:

```jsx
const closeMenu = () => {
console.log('closeMenu');
setVisible(false);
};

const navigateToStaticWebView = (itemKey: string) => {
navigation.push('StaticWeb', {
...webViews[itemKey as keyof typeof webViews],
});
};
```

And here is the menu item that is calling it:
```jsx
{
closeMenu();
navigateToStaticWebView('about');
}}
/>
```

I figure that I am just doing something dumb or missing something simple, but this has been throwing me for a loop for a few days. Any help or documentation would be greatly appreciated, thanks.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

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

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