Skip to content

[Android] When stack is wrapped with SafeAreaView, then the insets are still applied to header #3398

@Ubax

Description

@Ubax

Description

When ScreenStack is wrapped with SafeAreaView (either react-native-safe-area-context or the one from screens) then the top inset is still applied to header. This makes the header too tall.

Image

Related PRs:

Steps to reproduce

https://snack.expo.dev/@jtkacz/screens-android-wrong-top-inset

Snack or a link to a repository

https://snack.expo.dev/@jtkacz/screens-android-wrong-top-inset

Screens version

4.16.0 +

React Native version

0.81

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

Labels

area:stack-v4Issue related to Native Stack v4 implementationplatform:androidIssue related to Android part of the libraryrepro-providedA reproduction with a snack or repo is providedtype:bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions