-1
I’m doing a project in React Native using the React Navigation 3.x
and trying to use the Drawer Navigator
, I’ve used it on React Navigation 2.7
and it worked perfectly, only now for some reason it does not open, I try to pull it on the screen and it does not open, I put in the method componentDidMount
of the screen that the Drawer Navigator
is the function this.props.navigation.openDrawer()
and now when the screen is loaded Drawer appears only that I also can not close it, but if I click on one of the options of Drawer it selects and closes, it is as if the functions of opening and closing the Drawer sliding the finger on the screen were disabled, someone knows why this?
Code:
const Drawer = createDrawerNavigator({
Horarios: {
name: 'Horarios',
screen: HorariosQueryComponent
}
}, { drawerWidth: 250 });
export default createAppContainer(Drawer);