-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to customize drawer button in routerFlux 4.0 #2538
Comments
In the version 4 you don't actually need to do it. You can actually just call actions |
Thank you for the answer |
hey @daviscabral can you help me? I can add this line in Button componenet
but it is not work for me. Menu is not open. I add NavigationDrawer componenet.
|
@yasinugrl can you put your router here and say react-native version ? |
"react-native": "0.49.3",
|
I also new in router-flux but why your router not have key = "root" |
can you share with me your Router file for drawer button? @bkniya |
|
Actually this is very different my code. Can you share router.js file for me. I dont know Drawer Modal Lightbox Stack Component import where? |
Hey guys, sorry - I was a bit busy lately. You should import those components from RNRF, so you can use them the way @bkniya used. It seems you cannot open your drawer, cause it is not being loaded in the right way. Instead, use the By the way, are you using v3 or v4? This way that you are using, makes me think that you are mixing v3 and v4. |
Hi everyone, |
I open new issue related with #1078
but in the routerFlux 4.0
In Drawer component:
componentDidMount() { Actions.refresh({key: 'drawer', ref: this.refs.navigation}); }
In Button component:
onPress={() => {Actions.get('drawer').ref.toggle()}}
i can't use this :|
get this error:
_reactNativeRouterFlux.Actions.get is not a function
The text was updated successfully, but these errors were encountered: