How to force react navigation drawer to come over header and Statusbar in 5.X

17 Views Asked by At

Here is my code:

function DrawerContent() {
    return (
        <View style={{ flex: 1,}}>
            <Text>Drawer content</Text>
        </View>
    );
}
const DrawerNavigator = () => {
    return (
        <Drawer.Navigator
            drawerContent={() => <DrawerContent />}
            drawerType={'front'}
            drawerStyle={{width: '80%'}}
        >
            <Drawer.Screen name={'home'} component={Home} />
        </Drawer.Navigator>
    );
};

It looks like this below: the statusbar color is white and it cover the drawer background.

It looks like this below

and what i want: the drawer background cover the statusbar

enter image description here

0

There are 0 best solutions below