Hi i want to create a component by using a createDrawerNavigator
, and want to add it all screens could you help me.
相关问题
- React Native Inline style for multiple Text in sin
- How Do I Convert Image URI into Byte Expo
- ApolloClient from apollo-boost attemped to assign
- Implementing ssl pinning in a react-native applica
- React-Native: Enable Performance Monitor in produc
相关文章
- 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
In the below example don't copy all the syntax understand the concept from my explanation I have configured redux and many other imports you may not need so configure and include content in below files as you need.
File name -
BurgerMenu.js
File name -
SideBar.js
In this file specify the layout, any actions like navigation, api call etc of drawer as you want which is imported to above
BurgerMenu.js
fileAnd in the
App.js
importBurgermenu.js
toStackNavigator
Just open the burger menu from any the screens imported to
BurgerMenu.js
In my example you can open it from
news.js
andgallery.js
which are imported toBurgerMenu.js
.Just use below functions for open and close