fln-espranza 1.1.10 → 1.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/components/Drawer.tsx +0 -1
- package/components/EText.tsx +1 -1
- package/components/Loader.tsx +31 -0
- package/components/ProgressBar.tsx +1 -1
- package/package.json +1 -1
package/components/Drawer.tsx
CHANGED
package/components/EText.tsx
CHANGED
|
@@ -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
|
+
}
|