aksonov / aksonov/react-native-router-flux
Question: pass data between Drawer and nested scene
- Langage dominant
- JavaScript
- Étoiles
- 8.9k
- Forks
- 2.1k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
- react-native-router-flux v4.0.6
Hi everyone. I use app structure similar to this:
```
```
and I wonder how can I **pass data between Drawer and NestedScene** using React's state. If I use state within root app component, then after every `.setState()` call the entire app reloads and stuck in the initial `LoginComponent` scene. So my question is:
1) **Can I wrap Drawer and its nested Scene into single component (for ex. `` ) with its own state and use it like below**?
```
```
2) **If not, is there are any other ways to do this besides using Redux**?
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.