TypeError: Cannot read property 'Drawer' of undefined
Author: yilmazt81Created Aug 1, 2025Updated Sep 15, 2026
Labelsbugplatform:androidrepro provided
Current behavior
I’ve been struggling with the drawer menu for 3 days. I keep cleaning the project and reinstalling the related packages. Even when I try the example from your documentation, the drawer doesn’t work and throws an 'undefined' error. I couldn’t find a solution — I need your help, please.
Expected behavior
i want to see as drawer documentation .
Reproduction
https://github.com/yilmazt81/isomobileAppV2.git
Platform
- Android
- iOS
- Web
- Windows
- MacOS
Packages
- @react-navigation/bottom-tabs
- @react-navigation/drawer
- @react-navigation/material-top-tabs
- @react-navigation/stack
- @react-navigation/native-stack
- react-native-drawer-layout
- react-native-tab-view
Environment
- [] I've removed the packages that I don't use
| package | version |
|---|---|
| @react-navigation/native | |
| @react-navigation/bottom-tabs | |
| @react-navigation/drawer | |
| @react-navigation/material-top-tabs | |
| @react-navigation/stack | |
| @react-navigation/native-stack | |
| react-native-drawer-layout | |
| react-native-tab-view | |
| react-native-screens | |
| react-native-safe-area-context | |
| react-native-gesture-handler | |
| react-native-reanimated | |
| react-native-pager-view | |
| react-native | |
| expo | |
| node | |
| npm or yarn |
Source: react-navigation/react-navigation