Android: Keyboard cutoff in landscape mode when edge-to-edge is enabled (notch side clipped)
Personne n'a encore pris cette issue.
- Langage dominant
- C++
- Étoiles
- 127k
- Forks
- 25.3k
- Merge moyen
- 1 j 23 h
- PR mergées (30 j)
- 4
Description
Description
After enabling edge-to-edge , the Android keyboard gets cut off on the notch side in landscape orientation.
In LANDSCAPE_LEFT, the left side is clipped (behind the notch).
In LANDSCAPE_RIGHT, the right side is clipped.
In portrait, the keyboard displays correctly.
This happens regardless of using KeyboardAvoidingView, SafeAreaProvider, or adjustResize.
Steps to reproduce
- Create a new React Native project.
- Enable edge-to-edge
- Add a TextInput and focus it.
- Rotate the device to landscape.
React Native Version
0.81.4
Affected Platforms
Runtime - Android
Output of npx @react-native-community/cli info
System:
OS: macOS 14.7.5
CPU: (8) arm64 Apple M1
Memory: 109.77 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 23.11.0
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.9.2
path: /opt/homebrew/bin/npm
Watchman:
version: 2025.04.14.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: 2024.3 AI-243.24978.46.2431.13363775
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.15
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.4
wanted: 0.81.4
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
Stacktrace or Logs
na
MANDATORY Reproducer
https://github.com/Prajwaltechversant/orientationturbodummy
Screenshots and Videos
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez avec le reproducer obligatoire à l’adresse https://github.com/Prajwaltechversant/orientationturbodummy, activez edge-to-edge, donnez le focus à un TextInput et passez en mode paysage sur Android. Comparez le comportement de LANDSCAPE_LEFT et LANDSCAPE_RIGHT ; le travail est considéré comme terminé lorsque le clavier n’est plus tronqué du côté de l’encoche et que le comportement en mode portrait reste correct.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- android, react-native
- Domaine
- mobile
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Active
- Clarté
- Plutôt claire
- Accessibilité débutants
- 52/100