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.
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 totrue
automatically. If those are set, a warning is logged: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
isStatusBarTranslucentAndroid
/isNavigationBarTranslucentAndroid
, or set them to something else thantrue