@towsila/expo-ui-library 2.7.1 → 2.7.3
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,5 +1,5 @@
|
|
|
1
1
|
import { Text, TouchableOpacity, View, StyleSheet, I18nManager, Pressable } from "react-native";
|
|
2
|
-
import {
|
|
2
|
+
import { ArrowBack} from "@towsila/icons";
|
|
3
3
|
import { useAppTheme } from "../../context/ThemeContext";
|
|
4
4
|
import { Fonts, textSize } from "../../tokens/typography";
|
|
5
5
|
import PageIndicator from "../ui/pageIndicator";
|
|
@@ -80,7 +80,7 @@ export default function OnBoarding({
|
|
|
80
80
|
<Text
|
|
81
81
|
style={[
|
|
82
82
|
styles.skipLabel,
|
|
83
|
-
{ color: colors.text.primary, textAlign: I18nManager.isRTL ? "
|
|
83
|
+
{ color: colors.text.primary, textAlign: I18nManager.isRTL ? "right" : "left" },
|
|
84
84
|
]}
|
|
85
85
|
>
|
|
86
86
|
{skipLabel}
|
|
@@ -91,7 +91,7 @@ export default function OnBoarding({
|
|
|
91
91
|
{/* ---------- Content ---------- */}
|
|
92
92
|
<View style={styles.content}>
|
|
93
93
|
{/* Image */}
|
|
94
|
-
<View style={styles.imageContainer}>
|
|
94
|
+
<View style={[styles.imageContainer, I18nManager.isRTL && { transform: [{ scaleX: -1 }] }]}>
|
|
95
95
|
{image}
|
|
96
96
|
</View>
|
|
97
97
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { View,
|
|
1
|
+
import { View, Text, I18nManager } from "react-native";
|
|
2
2
|
import Svg, { Circle } from "react-native-svg";
|
|
3
3
|
import { Fonts, textSize } from "../../tokens/typography";
|
|
4
4
|
|
|
@@ -22,20 +22,20 @@ export default function PageIndicator({
|
|
|
22
22
|
defaultColor,
|
|
23
23
|
}: Props) {
|
|
24
24
|
return (
|
|
25
|
-
<View style={{ alignItems: I18nManager.isRTL ? "flex-
|
|
25
|
+
<View style={{ alignItems: I18nManager.isRTL ? "flex-start" : "flex-end", gap: 15, width: "100%" }}>
|
|
26
26
|
<Text style={{ color: textColor, fontSize: textSize.md, fontFamily: Fonts.montserrat.semiBold }}>
|
|
27
27
|
{stepsLabel}
|
|
28
28
|
</Text>
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
<View style={{ flexDirection: I18nManager.isRTL ? "row" : "row-reverse", gap: 8, width: "100%" }}>
|
|
31
|
+
{Array.from({ length: total }).map((_, index) => (
|
|
32
32
|
<View
|
|
33
33
|
key={index}
|
|
34
34
|
style={{
|
|
35
35
|
flex: 1,
|
|
36
36
|
height: BAR_HEIGHT,
|
|
37
37
|
borderRadius: BAR_HEIGHT / 2,
|
|
38
|
-
backgroundColor: current
|
|
38
|
+
backgroundColor: current >= index ? color : defaultColor,
|
|
39
39
|
}}
|
|
40
40
|
/>
|
|
41
41
|
))}
|