This repo is an example of how to create a custom drawer menu and pass on the props to child elements. It also has a navigation bar component which can be customised like adding the left and right icons etc.
To run the project open SideMenu folder your favourite IDE and run below commands in the root directory:-
npm install
exp start
Once the above commands are successful the expo serve will start. For more details on how to run the app using expo refer: Expo
The main purpose of this project is as below:-
-
To show how we can create a custom menu using react-navigation createCustomDrawerNavigator.
-
To pass on the props from parent to the child.
-
Custom navigation bar which has customised left,center and right buttons.
-
Call the dispatch function for drawer open and close functions.
Any suggestions are welcome, if you like the project don't forget to add a star on this repo :-)