Skip to content

[Drawer] High swipeEdgeWidth value causes keyboard to gets constantly closed #10927

@hannojg

Description

@hannojg

Current behavior

When using Drawer with e.g. swipeEdgeWidth: 500 pressing inside a TextInput is closing the Keyboard (instead of keeping the focus inside the TextInput

Screen.Recording.2022-10-14.at.12.49.41.PM.mov

Expected behavior

Reproduction

https://github.com/hannojg/react-navigation-swipeEdgeWidth-reproduction

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/​bottom-tabs
  • @react-navigation/​drawer
  • @react-navigation/​material-bottom-tabs
  • @react-navigation/​material-top-tabs
  • @react-navigation/​stack
  • @react-navigation/​native-stack

Environment

  • I've removed the packages that I don't use
package version
@react-navigation/native 6.0.13
@react-navigation/drawer 6.5.0
@react-navigation/stack 6.3.2
@react-navigation/native-stack 6.9.1
react-native-safe-area-context 4.4.1
react-native-screens 3.18.2
react-native-gesture-handler 2.7.1
react-native-reanimated 2.11.0
react-native 0.70.3
node 16.15.1
npm or yarn 1.22.19

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions