@towsila/expo-ui-library 3.6.0 → 3.6.1

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": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -1,5 +1,5 @@
1
1
  import React, { useState, ComponentProps } from "react";
2
- import { StyleProp, Text, TextInput, TextInputProps, View, ViewProps } from "react-native";
2
+ import { StyleProp, StyleSheet, Text, TextInput, TextInputProps, View, ViewProps } from "react-native";
3
3
  import { Ionicons } from "@expo/vector-icons";
4
4
  import { Fonts, textSize } from "../../tokens/typography";
5
5
  import { useAppTheme } from "../../context/ThemeContext";
@@ -73,6 +73,11 @@ export default function Input({
73
73
  }}
74
74
  />
75
75
  )}
76
+ {prefix && (
77
+ <View style={styles.prefix}>
78
+ {prefix}
79
+ </View>
80
+ )}
76
81
  {/* input */}
77
82
  <TextInput
78
83
  value={value}
@@ -133,3 +138,12 @@ export default function Input({
133
138
  </View>
134
139
  );
135
140
  }
141
+
142
+ const styles = StyleSheet.create({
143
+ prefix:{
144
+ flexDirection: "row",
145
+ gap: 4,
146
+ alignItems:"center",
147
+ paddingStart: 14,
148
+ }
149
+ });