@towsila/expo-ui-library 3.2.2 → 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
|
@@ -45,7 +45,7 @@ export default function OnBoarding({
|
|
|
45
45
|
>
|
|
46
46
|
{/* ---------- Header ---------- */}
|
|
47
47
|
<View style={{minHeight: 40,}}>
|
|
48
|
-
<View style={{ height: 44, flexDirection: isRTL? "row": "row
|
|
48
|
+
<View style={{ height: 44, flexDirection: isRTL? "row-reverse": "row", alignItems: "center", gap: 15}}>
|
|
49
49
|
<BackIcon onBack={onBack}/>
|
|
50
50
|
<Text
|
|
51
51
|
style={{
|
|
@@ -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
|
|
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
|
-
<
|
|
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",
|