fln-espranza 1.1.10 → 1.1.12

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.
@@ -40,7 +40,6 @@ const Drawer = ({name,profile, menuItems,navigation }: IProps) => {
40
40
  size="sm"
41
41
  source={""}
42
42
  nameFirstLetter={name?.split("")[0]}
43
- bg={"sky-400"}
44
43
  />
45
44
  <View style={tw`ml-3`}>
46
45
  <EText size={"xl"} style={tw`font-bold -mt-1`}>{name}</EText>
@@ -6,7 +6,7 @@ interface ETextProps extends TextProps {
6
6
  size?: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "title";
7
7
  muted?: boolean;
8
8
  style?: any;
9
- children: any;
9
+ children?: any;
10
10
  }
11
11
 
12
12
  export default function EText({
@@ -0,0 +1,31 @@
1
+ import { SCREEN_WIDTH, SCREEN_HEIGHT } from '@gorhom/bottom-sheet'
2
+ // import { Colors, EText } from 'fln-espranza'
3
+ import EText from './EText';
4
+ import React from 'react'
5
+ import { View, ActivityIndicator } from 'react-native'
6
+ import tw from '../lib/tailwind';
7
+ import { Colors } from '../utils/Color';
8
+
9
+ interface IProps{
10
+ show: boolean
11
+ }
12
+
13
+ export default function Loader({show}: IProps) {
14
+ return (
15
+ <>
16
+ {show ? <View style={[tw`absolute justify-center items-center z-10 bg-slate-100 `, {
17
+ opacity: 0.9,
18
+ width: SCREEN_WIDTH,
19
+ height: SCREEN_HEIGHT,
20
+ }]}>
21
+ <View style={[tw`h-24 w-32 bg-white px-2 py-3 justify-center items-center rounded-xl`]}>
22
+ <ActivityIndicator size="large" color={Colors['primary-base']} />
23
+ <EText size="base" style={tw`text-black`}>Loading...</EText>
24
+ </View>
25
+ </View>
26
+ :
27
+ <></>
28
+ }
29
+ </>
30
+ )
31
+ }
@@ -16,7 +16,7 @@ export default function ProgressBar( {progress}: IProps) {
16
16
  Animated.spring(barWidth, {
17
17
  toValue: progress,
18
18
  bounciness: 0,
19
- speed: 1,
19
+ speed: 7,
20
20
  useNativeDriver: false,
21
21
  }).start();
22
22
  }, [progress]);
@@ -27,6 +27,7 @@ import PageHeader from "./PageHeader";
27
27
  import PageHeaderSecondary from "./PageHeaderSecondary";
28
28
  import Spacer from "./Spacer";
29
29
  import ProgressBar from "./ProgressBar";
30
+ import Loader from "./Loader";
30
31
 
31
32
  export {
32
33
  Avatar,
@@ -57,7 +58,8 @@ export {
57
58
  EProfile,
58
59
  SecondaryBaseLayout,
59
60
  Timer,
60
- ProgressBar
61
+ ProgressBar,
62
+ Loader
61
63
 
62
64
 
63
65
  };
package/index.ts CHANGED
@@ -28,6 +28,7 @@ import PageHeaderSecondary from "./components/PageHeaderSecondary";
28
28
  import Spacer from "./components/Spacer";
29
29
  import { Colors } from "./utils/Color";
30
30
  import ProgressBar from "./components/ProgressBar";
31
+ import Loader from "./components/Loader";
31
32
 
32
33
  export {
33
34
  Avatar,
@@ -59,6 +60,7 @@ export {
59
60
  SecondaryBaseLayout,
60
61
  Timer,
61
62
  ProgressBar,
63
+ Loader,
62
64
  Colors
63
65
 
64
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fln-espranza",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
4
4
  "description": "All components used inside FLN Project of Espranza Innovations",
5
5
  "main": "index.ts",
6
6
  "scripts": {