Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Drawer defaultStatus="closed" not honoured on initial load #837

@georgevicbell

Description

@georgevicbell

Which package manager are you using? (Yarn is recommended)

npm

Summary

When defaultStatus="closed" is set on a Drawer, the drawer starts open, then immediately animates closed...expected behaviour is that the drawer should start closed - with no animation...

Minimal reproducible example

<Drawer
initialRouteName="home"
defaultStatus="closed"
screenOptions={{
headerStyle: {},
headerTintColor: "#000",
headerTitleStyle: {
fontWeight: "bold",
},
header: (props) => {
return (

<Pressable onPress={() => { props.navigation.toggleDrawer() }}>



);
},
}}

<Drawer.Screen
  name="index" // This is the name of the page and must match the url from root
  options={{
    drawerLabel: "Home",
    title: "overview",
  }}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions