Skip to content

Edge-to-Edge Rendering Issue on Android 15 in React Native #50423

Closed

Description

@Prajwaltechversant

Description

My app is targeting Android 15 (API level 35) and is edge-to-edge on an Android 15 device. However, the background is now hidden by the status bar.
Expected behavior: UI should respect SafeAreaView and StatusBar settings.

Steps to reproduce

Steps to Reproduce:

  1. Create a simple React Native app with a SafeAreaView and a StatusBar.
  2. Run it on an Android 15 emulator or device.
  3. Observe that UI elements overlap with the system bars.

React Native Version

0.78.1

Affected Platforms

Runtime - Android

Areas

Fabric - The New Renderer, TurboModule - The New Native Module System, Bridgeless - The New Initialization Flow, JSI - Javascript Interface

Output of npx @react-native-community/cli info

System:
  OS: macOS 15.1
  CPU: (8) arm64 Apple M1
  Memory: 126.55 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 23.6.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: 2024.12.02.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /usr/local/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.2 AI-242.23726.103.2422.13103373
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.13
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.78.1
    wanted: 0.78.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

no crash

Reproducer

https://github.com/Prajwaltechversant/StatusBarApp.git

Screenshots and Videos

Android 14 Android 15
Image Image

Activity

  1. added
    Type: New Architecture
    on Apr 1, 2025
  2. Prajwaltechversant commented on Apr 1, 2025

    @Prajwaltechversant
    Author

    I have attached screenshots in both android 15 and 14

  3. pawlitos commented on Apr 2, 2025

    @pawlitos

    This is an expected behaviour. If you want your UI to not overlap system bars you should add marginTop and marginBottom to the container view yourself. Use react-native-safe-area-context because React Native built-in SafeAreaView doesn't support Android.

  4. added and removed
    Type: New Architecture
    on Apr 2, 2025
  5. Prajwaltechversant commented on Apr 2, 2025

    @Prajwaltechversant
    Author

    i have tried this , but issue still persists

  6. added
    Needs: Attention
    and removed on Apr 2, 2025
  7. devanshsaini11 commented on Apr 3, 2025

    @devanshsaini11

    Hi @Prajwaltechversant as mentioned in react-native official documentation SafeAreaView is currently only supported for ios. You can try adding padding top to avoid overlap between your UI and system bar.

    Additionally you can leverage platforms like Stackoverflow or https://www.reactiflux.com/. This space is primarily for issues reporting

  8. added
    Resolution: For Stack Overflow
    and removed
    Needs: Attention
    on Apr 3, 2025
  9. react-native-bot commented on Apr 3, 2025

    @react-native-bot
    Collaborator

    Note

    Not a bug report: This issue looks like a question. We are using GitHub issues exclusively to track bugs in React Native. GitHub may not be the ideal place to ask a question, but you can try asking over on Stack Overflow, or on Reactiflux.

  10. Prajwaltechversant commented on Apr 3, 2025

    @Prajwaltechversant
    Author

    yeah i tried that also , but stil issue persists in android 15

  11. akshSekhon commented on Jun 2, 2025

    @akshSekhon

    StatusBar backgroundColor not changed in android 15

  12. sam9010 commented on Jul 1, 2025

    @sam9010

    yeah i tried that also , but stil issue persists in android 15

    hi, how to fix it?

  13. Rananjaya commented on Jul 16, 2025

    @Rananjaya

    same issue,here

  14. abolfazl-nowrouzi commented on Jul 20, 2025

    @abolfazl-nowrouzi

    same issue,here

  15. sahildev-ambula commented on Aug 4, 2025

    @sahildev-ambula

    Hi Guys you can fix the status bar overlapping issue and footer overlapping issue by adding this line in styles.xml file

    <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>

    Thanks me later!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: AndroidResolution: For Stack Overflow

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions