Add edge-to-edge opt-in support#52088
Conversation
|
@sbuggay has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@sbuggay has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@sbuggay Do you need me to rebase? |
Yeah that would be good. Also this PR is now driven by @alanleedev |
0515f30 to
63da6e7
Compare
|
@cortinico @alanleedev Commits squashed + branch rebased against |
c431f28 to
b1614e2
Compare
|
@alanleedev has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@zoontek Need to fix code here: https://github.com/facebook/react-native/blob/main/packages/react-native/ReactCxxPlatform/react/coremodules/DeviceInfoModule.h#L31 |
|
@alanleedev Done ✅ |
7f341b8 to
c9d290c
Compare
|
@alanleedev I addressed the 2 feedbacks |
|
@alanleedev has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@alanleedev merged this pull request in 09ef774. |
|
This pull request was successfully merged by @zoontek in 09ef774 When will my fix make it into a release? | How to file a pick request? |
## 📜 Description This PR updates `react-native-is-edge-to-edge` to the latest version: `1.2.1` to support the `edgeToEdgeEnabled` flag that will be available in the next React Native release (facebook/react-native#52088) ## 📢 Changelog - Update `react-native-is-edge-to-edge`
## Summary This PR updates `react-native-is-edge-to-edge` to the latest version: `1.2.1`. As `edgeToEdgeEnabled` will be available in the next React Native release (facebook/react-native#52088), we need a new release of `react-native-reanimated`, as it uses a fixed version of the dependency for the moment. To prevent this kind of issue, if it must happens again, I removed the strict requirement on the version number (for reference, `react-native-screens` doesn't fix the version https://github.com/software-mansion/react-native-screens/blob/62eb784c6457be366a2daf6d6d074b7a586fa61e/package.json#L72)
## Summary This PR updates `react-native-is-edge-to-edge` to the latest version: `1.2.1`. As `edgeToEdgeEnabled` will be available in the next React Native release (facebook/react-native#52088), we need to ensure that `react-native-is-edge-to-edge` supports both `react-native-edge-to-edge` and `edgeToEdgeEnabled`. Similar issue on reanimated: software-mansion/react-native-reanimated#7729
|
@zoontek Sorry for the dumb question, but how does this play with your library https://github.com/zoontek/react-native-edge-to-edge/? I can't tell from the blog post https://reactnative.dev/blog/2025/08/12/react-native-0.81#highlights-1 and your repo. Cheers! |
|
@fabiendem Good question, actually! I answered here. |
Great thanks, will check and discuss over there 👍 |
Summary:
This follows #47554
Compared to the initial proposal, I had to remove the
edgeToEdgeEnabledproperty from the rootgradle.propertiesand put it in the appgradle.propertiesinstead (explaining theAgpConfiguratorUtils.kt/GenerateEntryPointTask.kt/ProjectUtils.kt/PropertyUtils.ktchanges)This PR:
MainActivity(whenedgeToEdgeEnabledis set totrue)StatusBarbackgroundColorandtranslucent(whenedgeToEdgeEnabledis set totrue)statusBarTranslucentandnavigationBarTranslucentonModalwhen edge-to-edge is enabledisEdgeToEdgeconstant toDeviceInfoModuleforreact-native-is-edge-to-edgedetectionChangelog:
Test Plan:
enableEdgeToEdgevalue inpackages/rn-tester/android/app/gradle.propertiesdemo.mp4