aksonov / aksonov/react-native-router-flux
Updating drawer title or the first scene it displays via props
- 主要語言
- JavaScript
- 星號
- 8.9k
- 分支
- 2.1k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
### Version
Tell us which versions you are using:
4.0.5
- react 16.3.1
- react-native 0.57.4
Hello, I am new to react-native-router-flux and react-native as well. I would like to know how can I change the title of my drawer (which holds as the first scene an album list with a default title):

When I am in the Genre component, I select a genre and takes me back to the AlbumList component. Now, when I do that I would like to update the title of the drawer or the AlbumList component. I tried "Actions.refresh({ title: genre })" in the ComponentDidmount function on both the AlbumList component and the Menu Component which is the drawer passing a prop with the mapStateToProps on both.

I realize that this only works if the Actions.refresh is whithin some other function that is called when I press a button for instance in the same component.




I don't know what is the right approach. I would appreciate any help. Thank you!
貢獻指南
評估
這個 Issue 還沒有評估資料。