react / react/react-native

Android: Keyboard cutoff in landscape mode when edge-to-edge is enabled (notch side clipped)

オープン
#53,851 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

API: Keyboard Needs: Triage :mag: Platform: Android
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

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
  1. Create a new React Native project.
  2. Enable edge-to-edge
  3. Add a TextInput and focus it.
  4. 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
Image Image

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

https://github.com/Prajwaltechversant/orientationturbodummy の必須の reproducer から始め、edge-to-edge を有効にし、TextInput にフォーカスを当てて、Android で横向きに回転させます。LANDSCAPE_LEFT と LANDSCAPE_RIGHT の動作を比較します。完了の条件は、ノッチ側でキーボードが切り取られなくなり、縦向きの動作が引き続き正しいことです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, react-native
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
52/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。