react-native-edge-to-edge 1.8.1 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/android/build.gradle +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Effortlessly enable [edge-to-edge](https://developer.android.com/develop/ui/views/layout/edge-to-edge) display in React Native, allowing your Android (v6 and above) app content to flow seamlessly beneath the system bars.
|
|
4
4
|
|
|
5
|
-
> [!
|
|
6
|
-
> If you're
|
|
5
|
+
> [!IMPORTANT]
|
|
6
|
+
> [React Native 0.86](https://reactnative.dev/blog/2026/06/11/react-native-0.86) ships many edge-to-edge fixes. If you're on that version or later, prefer enabling edge-to-edge through the built-in `edgeToEdgeEnabled=true` Gradle property to benefit from them, paired with [`@zoontek/react-native-navigation-bar`](https://github.com/zoontek/react-native-navigation-bar) if you want to control the navigation bar style.
|
|
7
7
|
|
|
8
8
|
[](https://github.com/zoontek/react-native-edge-to-edge/blob/main/LICENSE)
|
|
9
9
|
[](https://www.npmjs.org/package/react-native-edge-to-edge)
|
package/android/build.gradle
CHANGED
|
@@ -12,13 +12,18 @@ buildscript {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
def isKotlinPluginMissing() {
|
|
16
|
+
return project.extensions.findByName("kotlin") == null
|
|
17
|
+
}
|
|
15
18
|
def isNewArchitectureEnabled() {
|
|
16
19
|
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
apply plugin: "com.android.library"
|
|
20
|
-
apply plugin: "kotlin-android"
|
|
21
23
|
|
|
24
|
+
if (isKotlinPluginMissing()) {
|
|
25
|
+
apply plugin: "kotlin-android"
|
|
26
|
+
}
|
|
22
27
|
if (isNewArchitectureEnabled()) {
|
|
23
28
|
apply plugin: "com.facebook.react"
|
|
24
29
|
}
|