fln-espranza 0.0.38 → 0.0.40
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/EStat.tsx +22 -0
- package/components/index.tsx +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import tw from "../../../lib/tailwind";
|
|
4
|
+
import EText from "./EText";
|
|
5
|
+
|
|
6
|
+
interface IProps {
|
|
7
|
+
stat: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default function EStat({ stat, label }: IProps) {
|
|
12
|
+
return (
|
|
13
|
+
<View style={tw`items-center flex-1 mx-2`}>
|
|
14
|
+
<EText size="xl" style={tw`font-bold text-cyan-400`}>
|
|
15
|
+
{stat}
|
|
16
|
+
</EText>
|
|
17
|
+
<EText size="xs" style={tw`text-center text-white/60 font-medium`}>
|
|
18
|
+
{label}
|
|
19
|
+
</EText>
|
|
20
|
+
</View>
|
|
21
|
+
);
|
|
22
|
+
}
|
package/components/index.tsx
CHANGED
|
@@ -28,6 +28,7 @@ import PageHeaderSecondary from "./PageHeaderSecondary";
|
|
|
28
28
|
import Spacer from "./Spacer";
|
|
29
29
|
import ProgressBar from "./EProgressBar";
|
|
30
30
|
import Loader from "./Loader";
|
|
31
|
+
import EStat from "./EStat";
|
|
31
32
|
|
|
32
33
|
export {
|
|
33
34
|
Avatar,
|
|
@@ -39,6 +40,7 @@ export {
|
|
|
39
40
|
EIcon,
|
|
40
41
|
EInput,
|
|
41
42
|
EText,
|
|
43
|
+
EStat,
|
|
42
44
|
ModalLayout,
|
|
43
45
|
PageHeader,
|
|
44
46
|
PageHeaderSecondary,
|