@towsila/expo-ui-library 3.2.3 → 3.2.4

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.2.3",
3
+ "version": "3.2.4",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -16,7 +16,7 @@ export default function ScreenHeader({title, description, onBack}:PageProps){
16
16
  const {isRTL} = useLanguage();
17
17
  return (
18
18
  <View style={{minHeight: 40, gap: 10}}>
19
- <View style={{ height: 44, flexDirection: isRTL? "row-reverse": "row", alignItems: "center", gap: 15}}>
19
+ <View style={{ height: 44, flexDirection: isRTL? "row": "row-reverse", alignItems: "center", gap: 15}}>
20
20
  <BackIcon onBack={onBack}/>
21
21
  <Text
22
22
  style={{
@@ -2,6 +2,7 @@ import { TouchableOpacity } from "react-native";
2
2
  import { useAppTheme } from "../../context/ThemeContext";
3
3
  import { ArrowBack } from "@towsila/icons";
4
4
  import { useLanguage } from "../..";
5
+ import { Ionicons } from "@expo/vector-icons";
5
6
 
6
7
  export default function BackIcon({onBack}:{onBack?: ()=>void}){
7
8
  const {colors} = useAppTheme();
@@ -17,12 +18,7 @@ export default function BackIcon({onBack}:{onBack?: ()=>void}){
17
18
  opacity: onBack ? 1: 0.5
18
19
  }}
19
20
  >
20
- <ArrowBack
21
- width={19}
22
- height={19}
23
- color={colors.text.primary}
24
- style={isRTL && { transform: [{ scaleX: -1 }] }}
25
- />
21
+ <Ionicons name="arrow-back" size={19} color={colors.text.primary} style={isRTL && { transform: [{ scaleX: -1 }] }}/>
26
22
  </TouchableOpacity>
27
23
  )
28
24
  }
@@ -4,7 +4,7 @@ import {Text} from 'react-native';
4
4
  interface ErrorProps{
5
5
  message: string,
6
6
  fontSize?: number,
7
- position?: "left" | "center",
7
+ position?: "left" | "center" | "right",
8
8
  fontFamily?: string;
9
9
  }
10
10
  export default function ErrorMessage({message, fontSize = textSize.xs, position = "left", fontFamily = Fonts.montserrat.regular}:ErrorProps){
@@ -9,6 +9,7 @@ import {
9
9
  import { useAppTheme } from "../../context/ThemeContext";
10
10
  import { Fonts, textSize } from "../../tokens/typography";
11
11
  import {CheckMark, Warning, Information,Close } from "@towsila/icons";
12
+ import { useLanguage } from "../..";
12
13
  interface ToastProps {
13
14
  visible: boolean;
14
15
  message: string;
@@ -25,7 +26,7 @@ export default function Toast({
25
26
  onHide,
26
27
  }: ToastProps) {
27
28
  const { colors } = useAppTheme();
28
-
29
+ const {isRTL} = useLanguage();
29
30
  const translateY = useRef(new Animated.Value(-200)).current;
30
31
  const opacity = useRef(new Animated.Value(0)).current;
31
32
 
@@ -104,6 +105,7 @@ export default function Toast({
104
105
  backgroundColor: toastStyle.background,
105
106
  opacity,
106
107
  transform: [{ translateY }],
108
+ flexDirection: isRTL ? "row-reverse" : "row",
107
109
  },
108
110
  ]}
109
111
  >
@@ -131,7 +133,6 @@ const styles = StyleSheet.create({
131
133
  },
132
134
 
133
135
  container: {
134
- flexDirection:"row",
135
136
  alignItems: "flex-start",
136
137
  gap:10,
137
138
  position: "absolute",