Skip to content

fix: match StatusBar and edge-to-edge interop according to latest spec#1185

Merged
kirillzyusko merged 3 commits intomainfrom
fix/match-edge-to-edge-and-status-bar-interpolation-on-new-rn
Nov 3, 2025
Merged

fix: match StatusBar and edge-to-edge interop according to latest spec#1185
kirillzyusko merged 3 commits intomainfrom
fix/match-edge-to-edge-and-status-bar-interpolation-on-new-rn

Conversation

@kirillzyusko
Copy link
Copy Markdown
Owner

@kirillzyusko kirillzyusko commented Nov 3, 2025

📜 Description

Don't update backgroundColor/translucent props of StatusBar if edge-to-edge mode is enabled in RN core.

💡 Motivation and Context

According to latest spec we shouldn't update backgroundColor/translucent props of StatusBar if edge-to-edge mode is enabled:

image image

In this PR I check directly if edge-to-edge mode is enabled only in RN core to keep a backward compatibility with old code and 3rd party libs interop.

Closes #1181

📢 Changelog

Android

  • added isEdgeToEdgeEnabled helper function in gradle;
  • expose IS_EDGE_TO_EDGE_ENABLED flag in BuildConfig;
  • don't modify StatusBar props such as backgroundColor/translucent if edge-to-edge is enabled in RN core;

🤔 How Has This Been Tested?

Tested on Pixel 9 Pro (API 35, emulator) + E2E tests.

📸 Screenshots (if appropriate):

Before After
Image Image

📝 Checklist

  • CI successfully passed
  • I added new mocks and corresponding unit-tests if library API was changed

@kirillzyusko kirillzyusko self-assigned this Nov 3, 2025
@kirillzyusko kirillzyusko added 🐛 bug Something isn't working 🤖 android Android specific labels Nov 3, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 3, 2025

📊 Package size report

Current size Target Size Difference
224516 bytes 224407 bytes 109 bytes 📈

@kirillzyusko kirillzyusko marked this pull request as ready for review November 3, 2025 11:33
@kirillzyusko kirillzyusko merged commit 6e4b14d into main Nov 3, 2025
16 checks passed
@kirillzyusko kirillzyusko deleted the fix/match-edge-to-edge-and-status-bar-interpolation-on-new-rn branch November 3, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 android Android specific 🐛 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android][Samsung only?] KeyboardProvider disables edge-to-edge

1 participant