@towsila/expo-ui-library 1.0.12 → 1.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@towsila/expo-ui-library",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -23,8 +23,7 @@ interface SplashScreenProps {
23
23
  onFinish: () => void; // called when animation ends, app decides where to go
24
24
  duration?: number; // total animation duration before onFinish, default 2800
25
25
  hookStartX?: number; // hook entry X offset, default -80
26
- hookStartY?: number;
27
- loading?:boolean; // hook entry Y offset, default -180
26
+ hookStartY?: number; // hook entry Y offset, default -180
28
27
  }
29
28
 
30
29
  export default function AnimatedSplashScreen({
@@ -36,7 +35,6 @@ export default function AnimatedSplashScreen({
36
35
  duration = 2800,
37
36
  hookStartX = -80,
38
37
  hookStartY = -180,
39
- loading
40
38
  }: SplashScreenProps) {
41
39
  const { colors } = useAppTheme();
42
40
 
@@ -84,13 +82,12 @@ export default function AnimatedSplashScreen({
84
82
  duration: 400,
85
83
  easing: Easing.out(Easing.quad),
86
84
  }));
87
- if(!loading){
85
+
88
86
  const timeout = setTimeout(() => {
89
87
  onFinish();
90
88
  }, duration);
91
89
 
92
90
  return () => clearTimeout(timeout);
93
- }
94
91
  }, []);
95
92
 
96
93
  const hookStyle = useAnimatedStyle(() => ({