Why use react-native-edge-to-edge dependency instead of the newer edgeToEdgeEnabled=true? #1079
Replies: 2 comments
-
|
I supported I will retire it in Unistyles 4.0. |
Beta Was this translation helpful? Give feedback.
-
|
react-native-edge-to-edge is still used because it relies on theme-based configuration, which behaves more consistently across activities and modals. While edgeToEdgeEnabled=true (RN ≥ 0.81) is promising, it’s applied programmatically and currently has gaps compared to the theme-based approach — most notably modals not covering the full screen when a system navigation bar is present. Until that upstream React Native issue is resolved, keeping react-native-edge-to-edge remains the safer option. Once it’s fixed, migrating to edgeToEdgeEnabled=true becomes much more viable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering about the motivations for not using this property yet, and whether there are any plans to replace the
react-native-edge-to-edgedependency with the neweredgeToEdgeEnabled=trueintroduced by the React Native team.The author of the library actually recommends using an alternative library he developed if you’re on React Native >= 0.81:
However, because
edgeToEdgeEnabledis only applied programmatically while the library leverages Android themes, there is an issue with the modal component not covering the full screen when a system navigation bar is present.This is basically why I haven’t switched to
edgeToEdgeEnabled=trueyet, but the library developer plans to fix this issue upstream in React Native, so things might change in the future.Beta Was this translation helpful? Give feedback.
All reactions