aksonov / aksonov/react-native-router-flux

Prevent unmount when leaving scene inside lightbox

Abierto
#3,711 1 comentario 4 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
8.9k
Forks
2.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### Version
- react-native-router-flux v4.2.0
- react v16.12.0
- react-native v0.61.5

### Expected behaviour
If I use Lightbox and navigate outside the root scene, to Scene A, then navigate to Scene B, Scene A does not unmount and pop()ing from Scene B, Scene A does not refresh.

### Actual behaviour
Scene A unmounts and refreshes. If I use Modal instead of Lightbox everything is fine but I need the transparency.

### Steps to reproduce
1. you are in one of the Scenes inside the root Scene.
2. you navigate to one of the Scenes (A) outside the root Scene, but inside the Lightbox.
3. you navigate to another Scene (B) outside the root Scene, but inside the Lightbox. Scene A unmounts (which I like to prevent)
4. pop()
5. Scene A reloads (instead of just being there like if I used Modal instead of Lightbox)

### Reproducible Demo
```









...
Actions.a();
...
Actions.b();
...
Actions.pop();
```

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.