I am trying to replicate the below design but I cannot find much information on how to implement DrawerNavigator for a specific screen and hook it up with redux. DrawerNavigator to be independent of the routes. All I want is a profile pic, name of the user, log out button and app version
相关问题
- React Native Inline style for multiple Text in sin
- How does react decide to rerender a component
- How Do I Convert Image URI into Byte Expo
- ApolloClient from apollo-boost attemped to assign
- Implementing ssl pinning in a react-native applica
相关文章
- Why do we have to call `.done()` at the end of a p
- Remove expo from react native
- React Native - Dynamic Image Source
- “Unfortunately, app has stopped” error with buildi
- eslint Parsing error: Unexpected token =
- How to determine JS bottlenecks in React Native co
- How to override navigation options in functional c
- PanResponder snaps Animated.View back to original
I assume that your app is going to have 2 main navigators which are for authentication and main navigator. If you use
react-navigation
, you may want to wrapDrawerNavigator
inside theStackNavigator
, as illustrated below.For starters, it is good to have a look at the tutorial from InfiniteRed where they put together a pretty decent tutorial, here. However, I believe the tutorial is a bit outdated as it is not compatible with the latest react-native version, at least for my case.
If you are already well-versed with redux and wish to integrate navigators into your app, you may want to have a look at kyaroru's neat implementation.
On the other hand, if you are using RNRF (I am on version
4.0.0-beta.22
), this is the structure you may want to stick with, whereDrawerComponent
is just a pretty straightforward class.