fln-espranza 0.0.9 → 0.0.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.
Binary file
@@ -0,0 +1,21 @@
1
+
2
+ import React from 'react'
3
+ import { ImageBackground, View } from 'react-native'
4
+ import tw from '../../../lib/tailwind'
5
+ import EText from "./EText";
6
+
7
+
8
+ interface IProps{
9
+ text: string;
10
+ }
11
+
12
+ export default function EEmptyPlaceholder( { text }: IProps) {
13
+ return (
14
+ <View style={tw`w-full h-full flex justify-center items-center`}>
15
+ <ImageBackground source={require("../assets/images/empty.png")} style={{width: 200, height: 200}} />
16
+ <EText size="lg" style={tw`text-center text-gray-500 mt-5`}>
17
+ {text}
18
+ </EText>
19
+ </View>
20
+ )
21
+ }
package/index.ts CHANGED
@@ -81,6 +81,7 @@ import EIconUsers from "./components/icons/EIconUsers";
81
81
  import EOption from "./components/EOption";
82
82
  import EQuestionSerialNumberLabel from "./components/EQuestionSerialNumberLabel";
83
83
  import EQuestionText from "./components/EQuestionText";
84
+ import EEmptyPlaceholder from "./components/EEmptyPlaceholder";
84
85
 
85
86
  export {
86
87
  Avatar,
@@ -122,7 +123,7 @@ export {
122
123
  EOption,
123
124
  EQuestionSerialNumberLabel,
124
125
  EQuestionText,
125
-
126
+ EEmptyPlaceholder,
126
127
 
127
128
  // ICONS
128
129
  EIconAdd,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fln-espranza",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "All components used inside FLN Project of Espranza Innovations",
5
5
  "main": "index.ts",
6
6
  "scripts": {