Skip to content

Warning "DrawerLayoutAndroid is deprecated" on app launch #4491

Description

@EmilJunker

Description

When I wrap the app content in a GestureHandlerRootView and launch the app, I see a "DrawerLayoutAndroid is deprecated" warning in the debug console. Everything else works fine, including gestures.

"react-native": "0.87.1",
"react-native-gesture-handler": "3.2.1",
"react-native-reanimated": "4.6.0",
"react-native-worklets": "0.12.1",

Steps to reproduce

  1. Place top-level GestureHandlerRootView around app content in App.tsx
  2. Start the app and notice the "DrawerLayoutAndroid is deprecated" warning in the debug console

A link to a Gist, an Expo Snack or a link to a repository based on this template that reproduces the bug.

https://gist.github.com/EmilJunker/3a5ee77abd9e150a0ac7041fd02894a4

Gesture Handler version

react-native-gesture-handler

React Native version

0.87.1

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

New Architecture (Fabric)

Build type

Debug mode

Device

Real device

Device model

No response

Acknowledgements

Yes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions