@onekeyfe/react-native-device-utils 3.0.179 → 6.7.0-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.
Files changed (2) hide show
  1. package/README.md +13 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -91,6 +91,19 @@ compile the production Swift/Kotlin stores with the generated primitive union,
91
91
  exercise type preservation, concurrent claims and independent keys, and run each
92
92
  executable in two fresh processes. Requires Swift, Kotlin, and Java.
93
93
 
94
+ ## Consumed launch data and listener cleanup
95
+
96
+ `getAndClearColdStartLocalNotification()` returns serialized local-notification
97
+ user info on iOS and consumes that value. An empty string means there is no
98
+ pending payload. Parse it only after checking for an empty result and avoid
99
+ logging notification contents or stored device tokens.
100
+
101
+ `addSpanningChangedListener` returns a numeric ID; retain it for
102
+ `removeSpanningChangedListener`. `getLaunchOptions()` returns a `LaunchOptions`
103
+ object with `launchType` and optional `deepLink`, rather than a raw URL string.
104
+ Use the exported result types for WebView, Google Play Services and hinge/window
105
+ geometry when building a platform adapter.
106
+
94
107
  ## License
95
108
 
96
109
  MIT.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-device-utils",
3
- "version": "3.0.179",
3
+ "version": "6.7.0-1",
4
4
  "description": "Native device, launch, system appearance and boot recovery utilities for OneKey",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",