@onekeyfe/react-native-splash-screen 3.0.162-alpha.272 → 3.0.163
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 +39 -0
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @onekeyfe/react-native-splash-screen
|
|
2
2
|
|
|
3
|
+
Native splash-screen visibility controls for OneKey on iOS and Android.
|
|
4
|
+
The Nitro interface lets application startup retain the splash screen and hide
|
|
5
|
+
it once the application's own readiness conditions are met.
|
|
6
|
+
|
|
7
|
+
## Installation and usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
yarn add @onekeyfe/react-native-splash-screen react-native-nitro-modules
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Configure the application's native splash resources and host integration,
|
|
14
|
+
install iOS pods and rebuild the native application. Installing this package
|
|
15
|
+
does not create the launch screen artwork or application startup sequence.
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { ReactNativeSplashScreen } from '@onekeyfe/react-native-splash-screen';
|
|
19
|
+
|
|
20
|
+
await ReactNativeSplashScreen.preventAutoHideAsync();
|
|
21
|
+
// Complete the application's existing startup/readiness work.
|
|
22
|
+
await ReactNativeSplashScreen.hideAsync();
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## API and ownership
|
|
26
|
+
|
|
27
|
+
Both `preventAutoHideAsync()` and `hideAsync()` return `Promise<boolean>`.
|
|
28
|
+
The application owns when each method is invoked and handles their outcomes;
|
|
29
|
+
the module does not decide whether data loading, navigation or rendering has
|
|
30
|
+
completed.
|
|
31
|
+
|
|
32
|
+
Call startup retention early enough for the consumer's native splash lifecycle.
|
|
33
|
+
Validate the actual cold-start transition on each platform, including failure
|
|
34
|
+
and retry paths in the application. A resolved visibility call does not prove
|
|
35
|
+
that the first application frame is ready or that launch performance improved.
|
|
36
|
+
|
|
37
|
+
The exported interface is in
|
|
38
|
+
[src/ReactNativeSplashScreen.nitro.ts](src/ReactNativeSplashScreen.nitro.ts).
|
|
39
|
+
|
|
40
|
+
## Upstream attribution
|
|
41
|
+
|
|
3
42
|
First, a sincere thank-you to Crazycodeboy and the
|
|
4
43
|
`react-native-splash-screen` maintainers for their excellent work 🙏
|
|
5
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-splash-screen",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.163",
|
|
4
4
|
"description": "react-native-splash-screen",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -50,14 +50,15 @@
|
|
|
50
50
|
],
|
|
51
51
|
"repository": {
|
|
52
52
|
"type": "git",
|
|
53
|
-
"url": "git+https://github.com/OneKeyHQ/app-modules
|
|
53
|
+
"url": "git+https://github.com/OneKeyHQ/app-modules.git",
|
|
54
|
+
"directory": "native-modules/react-native-splash-screen"
|
|
54
55
|
},
|
|
55
56
|
"author": "onekeyfe <huanming@onekey.so> (https://github.com/OneKeyHQ/app-modules)",
|
|
56
57
|
"license": "MIT",
|
|
57
58
|
"bugs": {
|
|
58
|
-
"url": "https://github.com/OneKeyHQ/app-modules/
|
|
59
|
+
"url": "https://github.com/OneKeyHQ/app-modules/issues"
|
|
59
60
|
},
|
|
60
|
-
"homepage": "https://github.com/OneKeyHQ/app-modules/react-native-splash-screen#readme",
|
|
61
|
+
"homepage": "https://github.com/OneKeyHQ/app-modules/tree/main/native-modules/react-native-splash-screen#readme",
|
|
61
62
|
"publishConfig": {
|
|
62
63
|
"registry": "https://registry.npmjs.org/"
|
|
63
64
|
},
|