aksonov / aksonov/react-native-router-flux
Question: pass data between Drawer and nested scene
- Ngôn ngữ chính
- JavaScript
- Star
- 8.9k
- Fork
- 2.1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
- 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**?
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.