File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
react-native-is-edge-to-edge Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -132,11 +132,11 @@ If you want to check for the library's presence on the native side to bypass cer
132
132
object EdgeToEdge {
133
133
// we cannot detect edge-to-edge, but we can detect react-native-edge-to-edge install
134
134
val ENABLED : Boolean = try {
135
- Class .forName(" com.zoontek.rnedgetoedge.EdgeToEdgePackage" )
136
- true
137
- } catch (exception: ClassNotFoundException ) {
138
- false
139
- }
135
+ Class .forName(" com.zoontek.rnedgetoedge.EdgeToEdgePackage" )
136
+ true
137
+ } catch (exception: ClassNotFoundException ) {
138
+ false
139
+ }
140
140
}
141
141
```
142
142
Original file line number Diff line number Diff line change @@ -37,10 +37,9 @@ function MyAwesomeLibraryComponent({
37
37
If you want to check for the library's presence on the native side to bypass certain parts of your code, consider using this small utility:
38
38
39
39
``` kotlin
40
- object EdgeToEdgeUtil {
41
- val ENABLED : Boolean
42
- get() = try {
43
- // we cannot detect edge-to-edge, but we can detect react-native-edge-to-edge install
40
+ object EdgeToEdge {
41
+ // we cannot detect edge-to-edge, but we can detect react-native-edge-to-edge install
42
+ val ENABLED : Boolean = try {
44
43
Class .forName(" com.zoontek.rnedgetoedge.EdgeToEdgePackage" )
45
44
true
46
45
} catch (exception: ClassNotFoundException ) {
You can’t perform that action at this time.
0 commit comments