I would like to say use reactnavigation. that is providing drawer To open and close drawer, navigate to ‘DrawerOpen’ and ‘DrawerClose’ respectively.
this.props.navigation.navigate('DrawerOpen'); // open drawer this.props.navigation.navigate('DrawerClose'); // close drawer
https://reactnavigation.org/docs/drawer-based-navigation.html
or here is one example That also is good . refer this