callstack / callstack/react-native-paper

Menu + Navigation is not clearing the PortalManager

Abierto
#4,319 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Portal question
Lenguaje dominante
TypeScript
Estrellas
14.5k
Forks
2.2k
Merge medio
5 d 23 h
PR fusionados (30 d)
12

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.