@umituz/react-native-splash 2.1.8 → 2.1.11
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 +51 -0
- package/package.json +4 -3
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# ⚠️ DEPRECATED
|
|
2
|
+
|
|
3
|
+
This package has been **deprecated** and integrated into `@umituz/react-native-design-system@2.6.0+`.
|
|
4
|
+
|
|
5
|
+
## Migration Guide
|
|
6
|
+
|
|
7
|
+
### Before (Standalone Package)
|
|
8
|
+
```tsx
|
|
9
|
+
import { SplashScreen } from '@umituz/react-native-splash';
|
|
10
|
+
|
|
11
|
+
<SplashScreen
|
|
12
|
+
appName="My App"
|
|
13
|
+
tagline="My Tagline"
|
|
14
|
+
colors={{ background: '#000', text: '#fff' }}
|
|
15
|
+
/>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### After (Design System Integration)
|
|
19
|
+
```tsx
|
|
20
|
+
import { DesignSystemProvider } from '@umituz/react-native-design-system';
|
|
21
|
+
|
|
22
|
+
<DesignSystemProvider
|
|
23
|
+
splashConfig={{
|
|
24
|
+
appName: "My App",
|
|
25
|
+
tagline: "My Tagline",
|
|
26
|
+
colors: {
|
|
27
|
+
background: "#000000",
|
|
28
|
+
text: "#FFFFFF",
|
|
29
|
+
},
|
|
30
|
+
}}
|
|
31
|
+
>
|
|
32
|
+
<YourApp />
|
|
33
|
+
</DesignSystemProvider>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Benefits of Migration
|
|
37
|
+
|
|
38
|
+
✅ **Automatic Loading**: Splash shows during theme initialization
|
|
39
|
+
✅ **One Less Dependency**: Integrated into design system
|
|
40
|
+
✅ **Better UX**: Handles app startup gracefully
|
|
41
|
+
✅ **Same API**: Similar configuration structure
|
|
42
|
+
|
|
43
|
+
## Installation
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npm install @umituz/react-native-design-system@latest
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Documentation
|
|
50
|
+
|
|
51
|
+
See [Design System Documentation](https://github.com/umituz/react-native-design-system) for full details.
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-splash",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"
|
|
3
|
+
"version": "2.1.11",
|
|
4
|
+
"deprecated": "This package has been integrated into @umituz/react-native-design-system@2.6.0+. Please use DesignSystemProvider with splashConfig instead.",
|
|
5
|
+
"description": "DEPRECATED: Use @umituz/react-native-design-system instead",
|
|
5
6
|
"main": "./src/index.ts",
|
|
6
7
|
"types": "./src/index.ts",
|
|
7
8
|
"scripts": {
|
|
@@ -50,4 +51,4 @@
|
|
|
50
51
|
"README.md",
|
|
51
52
|
"LICENSE"
|
|
52
53
|
]
|
|
53
|
-
}
|
|
54
|
+
}
|