Repository navigation
Conversation
In split screen the keyboard covered the terminal's shortcut row and Live input bar, and nothing lifted out of the way. The window is never resized there and Android reports no keyboard at all: `keyboardDidShow` arrives with a height of -31.9dp, because the shell owns the IME (`imeControlTarget` is a `RemoteInsetsControlTarget`) and hands the window `imeInsets.bottom = 0`, which RN then reduces by the navigation bar. Re-reads at +100ms through +2500ms return the same value and reanimated's inset listener never fires, so it is an absent inset rather than a race, and no app-side measurement of the keyboard exists in that mode. Two things had to be undone, neither of which works alone: - Android 15+ edge-to-edge enforcement pins `decorFitsSystemWindows=false`. The opt-out is a window *theme* attribute, and Android 16 ignores it above targetSdk 35, hence the pin in expo-build-properties. - expo-modules-core's `EdgeToEdgePackage` re-enables edge-to-edge at activity create regardless of RN's feature flag, so `MainActivity` sets decor fitting back on — only in multi-window, since full screen reports the IME normally and would otherwise double up with the layout's own lift. Verified on a motorola razr fold 2026 (Android 16): split screen now shows the shortcut row and input bar above the keyboard, and full screen is unchanged. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GZq3xEtzu3nJzg1rdtyQsF
📝 WalkthroughWalkthroughThe Android Expo configuration now registers two prebuild plugins and targets SDK 35. One plugin sets the edge-to-edge opt-out attribute on the required application themes. The other patches Merge Risk: 🟡 Moderate · up to This change fixes split-screen keyboard layout on the tested configuration, but shipping with target API 35 will prevent future Google Play submissions and updates after the stated deadline. Update the implementation for target API 36 before merge or explicitly accept the release limitation. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the problem, root cause, fix, verification, and trade-offs. However, it omits required template sections, including Linked Issue, Visual Proof, Testing checkboxes and details, Review, Agent skill upstream boundary, Notes, and Checklist. Resolution Add all missing required sections. Include a linked issue after Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files. (1 skipped: 1 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: 70dcf9b8-211c-446f-aa1e-35e4a4564535
📒 Files selected for processing (3)
mobile/app.jsonmobile/plugins/android-fit-system-windows-for-ime.jsmobile/plugins/android-optout-edge-to-edge-enforcement.js
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
| "android": { | ||
| "usesCleartextTraffic": true | ||
| "usesCleartextTraffic": true, | ||
| "targetSdkVersion": 35 |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
printf '%s\n' '--- mobile/app.json ---'
sed -n '70,125p' mobile/app.json
printf '%s\n' '--- dependency manifests ---'
fd -i -t f 'package.json|app.json|app.config.*|gradle.properties|build.gradle|settings.gradle' mobile .
printf '%s\n' '--- Expo and target-SDK references ---'
rg -n 'expo-splash-screen|targetSdkVersion|windowOptOutEdgeToEdgeEnforcement|compileSdk|Expo 55|SDK 55' mobile package.json package-lock.json yarn.lock pnpm-lock.yaml 2>/dev/null || trueRepository: stablyai/orca
Length of output: 3226
🤖 get_repo_knowledge executed:
get_repo_knowledge stablyai/orca /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/learnings /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/conventions
Length of output: 38950
🌐 Web query:
Google Play target API level requirements August 31 2026 Android 16 API 36 targetSdkVersion
💡 Result:
Effective August 31, 2026, Google Play enforces updated target API level requirements for new apps and app updates [1][2][3]. For most apps—specifically those on phones, tablets, foldables, and Android Auto—the requirement is to target Android 16 (API level 36) or higher [1][2][3]. Other form factors have different requirements: - Wear OS and Android Automotive OS apps must target Android 15 (API level 35) or higher [1][2][3]. - Android TV and Android XR apps must target Android 14 (API level 34) or higher [1][2][3]. For existing apps that are not updated, the requirement to remain discoverable to new users on newer Android OS versions is to target Android 15 (API level 35) or higher [1][2]. Apps failing to meet this threshold will not be discoverable to users on Android OS versions newer than the app's current target API level [1][2][4]. Developers who are unable to meet these deadlines may request an app-specific extension via the Play Console, which can extend the deadline to November 1, 2026 [3][5]. Failure to meet the requirements does not delete an app or remove it from devices where it is already installed; it primarily blocks new submissions and limits discoverability for new users on newer devices [4][3][5].
Citations:
- 1: https://developer.android.com/google/play/requirements/target-sdk
- 2: https://support.google.com/googleplay/android-developer/answer/11926878
- 3: https://primetestlab.com/blog/google-play-target-api-level-2026
- 4: https://support.google.com/googleplay/android-developer/answer/11917020
- 5: https://dev.to/mr_manushukla/android-target-api-36-is-due-aug-31-2026-api-37-is-next-the-play-store-migration-checklist-2f9i
🌐 Web query:
site:developer.android.com Android 16 API 36 windowOptOutEdgeToEdgeEnforcement target SDK 36 disabled
💡 Result:
For apps targeting Android 16 (API level 36), the windowOptOutEdgeToEdgeEnforcement attribute is deprecated and disabled, meaning apps can no longer opt out of edge-to-edge enforcement [1][2]. Key details regarding this change include: - Enforcement: While Android 15 (API level 35) introduced the ability to opt out of edge-to-edge enforcement using the windowOptOutEdgeToEdgeEnforcement attribute, this option is no longer available when targeting Android 16 [1]. - Compatibility: If your app targets Android 16 but is running on an Android 15 device, the attribute will still function as an opt-out [1]. However, when running on an Android 16 device, the attribute is explicitly disabled, and the app must support edge-to-edge layouts [1]. - Migration: To ensure proper UI display, developers are advised to remove any usage of windowOptOutEdgeToEdgeEnforcement and implement edge-to-edge support by handling window insets appropriately, using established guidance for Jetpack Compose or Views [1][3][4].
Citations:
- 1: https://developer.android.com/about/versions/16/behavior-changes-16
- 2: https://developer.android.com/about/versions/16/summary
- 3: https://developer.android.com/develop/ui/views/layout/edge-to-edge
- 4: https://developer.android.com/develop/ui/compose/system/setup-e2e
Raise the target SDK to API 36 for Google Play releases.
If this app ships through Google Play on phones or tablets, targetSdkVersion: 35 blocks new submissions and updates after August 31, 2026. Target API 36 and implement the split-screen inset fix instead of relying on windowOptOutEdgeToEdgeEnforcement, which Android 16 disables.
There was a problem hiding this comment.
ℹ️ No blocking issues — the mechanism is sound and verified on device, but two things are worth tracking before this becomes a long-term dependency.
Reviewed changes
This run reviewed the Android split-screen keyboard-inset fix: two new config plugins that opt the theme out of Android 15+ edge-to-edge enforcement and re-enable decor fitting in multi-window, plus an app.json pin of targetSdkVersion to 35.
android-optout-edge-to-edge-enforcement.js— setsandroid:windowOptOutEdgeToEdgeEnforcement="true"onAppThemeandTheme.App.SplashScreen, throwing at prebuild if either theme is missing.android-fit-system-windows-for-ime.js— injectsWindowCompat.setDecorFitsSystemWindows(window, isInMultiWindowMode)plusonMultiWindowModeChangedoverrides (two-arg + deprecated single-arg for API 24-25) intoMainActivity, throwing at prebuild if its anchors drift.app.json— registers both plugins and pinstargetSdkVersionto 35.
ℹ️ Pinning targetSdkVersion to 35 is a whole-app downgrade with a hard expiry
The opt-out only works because the app targets SDK 35 — Android 16 disables windowOptOutEdgeToEdgeEnforcement for apps targeting 36, and Expo SDK 55 / RN 0.83 otherwise target 36. So this trades an app-wide targetSdk downgrade for a single split-screen edge case, and it stops working the moment Play requires targeting 36. The coupling is documented in the plugin comment but not enforced: nothing fails at prebuild if a future change bumps targetSdkVersion back to 36, so the split-screen keyboard bug would return silently.
Technical details
# Track the targetSdk 36 migration
## Affected sites
- mobile/app.json:114 — `"targetSdkVersion": 35` pins the whole app and is what makes the opt-out effective
- mobile/plugins/android-optout-edge-to-edge-enforcement.js — documents the coupling but does not enforce it
## Required outcome
- A tracked follow-up (issue) for reworking/retiring this opt-out when targetSdk 36 becomes mandatory, so the stopgap does not silently regress.
- Optionally: have the opt-out plugin assert the effective `targetSdkVersion` is <= 35 at prebuild and throw otherwise, consistent with its existing loud-failure anchors.
## Open questions for the human
- Is the whole-app targetSdk downgrade (e.g. any API 35 vs 36 runtime-behavior differences on Android 16) an acceptable cost for this fix?
- Is a narrower runtime probe of the ime inset feasible to replace the broad `isInMultiWindowMode` proxy later?ℹ️ Nitpicks
- The
isInMultiWindowModeproxy also covers freeform/desktop-mode windows, which already receive the IME inset and will therefore double-inset (already documented in the plugin). Worth a look if a seam shows up in those window modes.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
Closing as stale. The branch is far behind main and conflicts in mobile/app.json, and the target SDK review point is still open. I'll open a fresh PR against current main if this is still needed on current Android. |

Problem
In Android split screen the keyboard covered the terminal's shortcut row and Live input bar, and nothing lifted out of the way.
Why it happens
The window is never resized there, and Android reports no keyboard to the app at all. Measured on a motorola razr fold 2026 (Android 16),
keyboardDidShowarrives with:The shell owns the IME —
dumpsys windowshowsimeControlTargetis aRemoteInsetsControlTarget— so the window getsimeInsets.bottom = 0, and RN'sReactRootView.checkForKeyboardEventsreduces that by the 31.9dp navigation bar, yielding a negative height.It is an absent inset, not a race: re-reads of
Keyboard.metrics()at +100 / +300 / +600 / +1200 / +2500ms all returned the same value, and auseAnimatedKeyboardlistener never fired once. No app-side measurement of the keyboard exists in that mode, so no JS-only fix is possible.The fix
Two separate things pin
decorFitsSystemWindows = false, and undoing either alone changes nothing:android:windowOptOutEdgeToEdgeEnforcement), not a manifest attribute — the manifest form was verified to have no effect. Android 16 also ignores it above targetSdk 35, hence theexpo-build-propertiespin. The window is created with the splash theme and swapped toAppThemeafter, so both carry the attribute.EdgeToEdgePackagecallsenableEdgeToEdge()at activity create regardless of RN'sisEdgeToEdgeFeatureFlagOn.MainActivitynow sets decor fitting back on — only in multi-window, since full screen reports the IME normally and fitting there double-compensates with the layout's own keyboard lift (confirmed: an unconditional version left a keyboard-sized black band in full screen).Both plugins throw during prebuild if their anchors are missing, so a template change fails the build instead of silently shipping the regression.
Verification
On a motorola razr fold 2026 (Android 16), release build:
EDGE_TO_EDGE_ENFORCEDis gone from the window's private flags.Trade-offs and follow-ups
isInMultiWindowModeis a broad proxy. Freeform and desktop-mode windows are also multi-window but do receive the ime inset, so they get a system inset they don't need. Narrowing this needs a runtime probe of the ime inset, which can't run before the first keyboard opens. Noted in the plugin comment.windowBackgroundrather than the themed surface. Not visible on the test device; worth a look if a seam shows up.terminal-viewport-refit-state.ts) holds the PTY resize until the keyboard closes, at which point the resting size is reasserted.🤖 Generated with Claude Code
https://claude.ai/code/session_01GZq3xEtzu3nJzg1rdtyQsF