镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

StatusBar does nothing on iOS 27 #58758

Description

@erkamyaman

Description

On iOS 27, StatusBar.setBarStyle and setHidden have no effect. RCTStatusBarManager calls -[UIApplication setStatusBarStyle:animated:], which iOS 27 made a no-op. UIKit logs:

-[UIApplication setStatusBarStyle:animated:] API has been deprecated and is a no-op on 27.0 and later.

Same build works on iOS 18.5. Switching to UIViewControllerBasedStatusBarAppearance = YES doesn't help, since the module refuses to work with it.

Steps to reproduce

  1. Build with Xcode 27 and run on an iOS 27 simulator
  2. Call StatusBar.setBarStyle('light-content') on a light screen
  3. Icons stay dark

React Native Version

0.87.1

Affected Platforms

Runtime - iOS

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

System:
  OS: macOS 27.2
  CPU: (10) arm64 Apple M4
SDKs:
  iOS SDK:
    Platforms: iOS 27.0
IDEs:
  Xcode:
    version: 27.0/27A266a
npmPackages:
  "@react-native-community/cli": 20.1.0
  react: 19.2.3
  react-native: 0.87.1
iOS:
  hermesEnabled: true
  newArchEnabled: true

Reproducer

https://github.com/erkamyaman/rn-statusbar-ios27

Screenshots and Videos

Image Image

Activity

  1. AlienVIII commented on Oct 8, 2026

    @AlienVIII

    same here
    [com.apple.UIKit] -[UIApplication statusBarFrame] API has been deprecated and is a no-op on 27.0 and later.
    [com.apple.UIKit] -[UIApplication statusBarStyle] API has been deprecated and is a no-op on 27.0 and 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions