Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes on Android: [RNScreens] Attempt to register InsetsObserverProxy #2582

Closed
Tobbe opened this issue Dec 18, 2024 · 1 comment
Closed
Assignees
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided

Comments

@Tobbe
Copy link

Tobbe commented Dec 18, 2024

Description

My app crashes as soon as I start it when using Expo Go.

image

If I switch to a development build it works fine

image

It seems that setting the statusbar to be translucent might be the cuprit

Broken:

export default function RootLayout() {
  return <Stack screenOptions={{ statusBarTranslucent: true }} />;
}

Works:

export default function RootLayout() {
  return <Stack />;
}

Steps to reproduce

Clone and run the linked repo. Open the app using Expo Go on an Android Emulator. It should immediately crash, showing the screen in the screenshot above

Snack or a link to a repository

https://github.com/Tobbe/expo-status-bar

Screens version

4.1.0

React Native version

0.76.5

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo managed workflow

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Android emulator

Device model

API 35

Acknowledgements

Yes

@github-actions github-actions bot added Repro provided A reproduction with a snack or repo is provided Platform: Android This issue is specific to Android labels Dec 18, 2024
@kkafar
Copy link
Member

kkafar commented Dec 18, 2024

Hey @Tobbe, thanks for reporting. The issue you describe was fixed with #2526 and is already released with version 4.3.0 of the library. As for Expo Go I can't say what is the library upgrade strategy there. Developement build is surely way to go.

@kkafar kkafar closed this as completed Dec 18, 2024
@kkafar kkafar self-assigned this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided
Projects
None yet
Development

No branches or pull requests

2 participants