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

feature: Detect edge-to-edge and set isStatusBarTranslucentAndroid / isNavigationBarTranslucentAndroid #6732

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zoontek
Copy link

@zoontek zoontek commented Nov 19, 2024

Summary

Similar to the PR I opened on the react-native-screens repository (I highly recommend to read the discussion there to understand the motivation behind this), this PR detects if the user enabled edge-to-edge and act accordingly: useAnimatedKeyboard are ignored, set to true automatically. If those are set, a warning is logged:

isStatusBarTranslucentAndroid and isNavigationBarTranslucentAndroid values are ignored when using react-native-edge-to-edge

It at some point this proposal lands in core, react-native-is-edge-to-edge will be updated to support both the library and the core edge-to-edge flag, making the transition seamless for the users.

Test plan

  • Install react-native-edge-to-edge in the example app.
  • Don't set isStatusBarTranslucentAndroid / isNavigationBarTranslucentAndroid, or set them to something else than true

@tomekzaw
Copy link
Member

Hi @zoontek, thanks for this PR. We briefly discussed this internally and @bartlomiejbloniarz will take a look on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants