react-navigation / react-navigation/react-navigation

Keyboard dismiss behaviour while navigating back

Open
#10,706 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug platform:ios platform:web repro provided
Dominant language
TypeScript
Stars
24.5k
Forks
5.1k
Avg merge
1d 5h
Merged PRs (30d)
18

Description

Current behavior

Navigating back dismisses the keyboard.

Expected behavior

I expected the keyboard to be open as I have two text inputs on both screens.

Reproduction

https://snack.expo.dev/@amumu/3accb3

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
package version
@react-navigation/native 6.0.6
@react-navigation/bottom-tabs 6.0.9
@react-navigation/stack 6.0.11
react-native-safe-area-context 3.3.2
react-native-screens 3.8.0
react-native-gesture-handler 1.10.3
react-native-reanimated 2.2.0
react-native 0.64.2
node 17.0.1
npm 8.3.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Snack reproduction and compare the iOS back-navigation behavior with the reported package versions. Trace which navigation package handles the back action and keyboard dismissal; done when navigating back between the two screens leaves the keyboard open as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.