aksonov / aksonov/react-native-router-flux

Question: pass data between Drawer and nested scene

オープン
#3,509 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
8.9k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

- 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**?

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

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

評価

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

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

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