react-native-edge-to-edge 0.1.0 → 0.1.1

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.
@@ -23,7 +23,7 @@ class RNEdgeToEdgePackage : TurboReactPackage() {
23
23
  RNEdgeToEdgeModuleImpl.NAME,
24
24
  RNEdgeToEdgeModuleImpl.NAME,
25
25
  false,
26
- false,
26
+ true,
27
27
  true,
28
28
  false,
29
29
  isTurboModule
@@ -13,6 +13,10 @@ class RNEdgeToEdgeModule(reactContext: ReactApplicationContext?) :
13
13
  reactApplicationContext.addLifecycleEventListener(this)
14
14
  }
15
15
 
16
+ override fun invalidate() {
17
+ reactApplicationContext.removeLifecycleEventListener(this)
18
+ }
19
+
16
20
  override fun getName(): String {
17
21
  return RNEdgeToEdgeModuleImpl.NAME
18
22
  }
@@ -15,6 +15,10 @@ class RNEdgeToEdgeModule(reactContext: ReactApplicationContext?) :
15
15
  reactApplicationContext.addLifecycleEventListener(this)
16
16
  }
17
17
 
18
+ override fun invalidate() {
19
+ reactApplicationContext.removeLifecycleEventListener(this)
20
+ }
21
+
18
22
  override fun getName(): String {
19
23
  return RNEdgeToEdgeModuleImpl.NAME
20
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-edge-to-edge",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "description": "Effortlessly enable edge-to-edge display in React Native",
6
6
  "author": "Mathieu Acthernoene <zoontek@gmail.com>",