@towsila/expo-ui-library 3.1.0 → 3.1.2

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.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -44,7 +44,7 @@ export default function OnBoarding({
44
44
  >
45
45
  {/* ---------- Header ---------- */}
46
46
  <View style={{minHeight: 40,}}>
47
- <View style={{ height: 44, flexDirection: "row", alignItems: "center", gap: 15}}>
47
+ <View style={{ height: 44, flexDirection: isRTL? "row": "row-reverse", alignItems: "center", gap: 15}}>
48
48
  <TouchableOpacity onPress={onBack} disabled={!onBack}
49
49
  style={{
50
50
  borderWidth: 1,
@@ -100,7 +100,6 @@ export default function OnBoarding({
100
100
  textColor={colors.text.primary}
101
101
  defaultColor={colors.semantic.border}
102
102
  stepsLabel={stepsLabel}
103
- isRTL={isRTL}
104
103
  />
105
104
  </View>
106
105
  {/* Text */}
@@ -9,7 +9,6 @@ type Props = {
9
9
  textColor: string;
10
10
  color?: string;
11
11
  defaultColor:string;
12
- isRTL?: boolean;
13
12
  };
14
13
 
15
14
  const BAR_HEIGHT = 6;
@@ -20,8 +19,8 @@ export default function PageIndicator({
20
19
  textColor = "black",
21
20
  color = "white",
22
21
  defaultColor,
23
- isRTL,
24
22
  }: Props) {
23
+ const {isRTL} = useLanguage();
25
24
  return (
26
25
  <View style={{ alignItems: isRTL ? "flex-start" : "flex-end", gap: 15, width: "100%" }}>
27
26
  <Text style={{ color: textColor, fontSize: textSize.md, fontFamily: Fonts.montserrat.semiBold }}>