From caf076c37660d6ece11f95ca681fecae0134c6e3 Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Sat, 16 Nov 2024 10:25:10 +0100 Subject: [PATCH] Update README.md --- README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 235aa8f..d4fa8af 100644 --- a/README.md +++ b/README.md @@ -129,15 +129,14 @@ function MyAwesomeLibraryComponent({ 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: ```kotlin -object EdgeToEdgeUtil { - val ENABLED: Boolean - get() = try { - // we cannot detect edge-to-edge, but we can detect react-native-edge-to-edge install - Class.forName("com.zoontek.rnedgetoedge.EdgeToEdgePackage") - true - } catch (exception: ClassNotFoundException) { - false - } +object EdgeToEdge { + // we cannot detect edge-to-edge, but we can detect react-native-edge-to-edge install + val ENABLED: Boolean = try { + Class.forName("com.zoontek.rnedgetoedge.EdgeToEdgePackage") + true + } catch (exception: ClassNotFoundException) { + false + } } ```