@towsila/expo-ui-library 4.11.0 → 4.11.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": "4.11.0",
3
+ "version": "4.11.2",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -45,8 +45,9 @@ export default function OnBoarding({
45
45
  >
46
46
  {/* ---------- Header ---------- */}
47
47
  <View style={{minHeight: 40,}}>
48
- <View style={{ height: 44, flexDirection: isRTL? "row-reverse": "row", alignItems: "center", gap: 15, justifyContent: "flex-start",}}>
48
+ <View style={{ height: 44, flexDirection: isRTL? "row-reverse": "row", alignItems: "center", gap: 15, justifyContent: "space-between",}}>
49
49
  <BackIcon onBack={onBack}/>
50
+ <View style={{flexDirection: isRTL? "row-reverse": "row", alignItems: "center", gap: 15,}}>
50
51
  <Text
51
52
  style={{
52
53
  fontSize: textSize.xl,
@@ -56,17 +57,18 @@ export default function OnBoarding({
56
57
  >
57
58
  {title}
58
59
  </Text>
60
+ <TouchableOpacity onPress={onSkip}>
61
+ <Text
62
+ style={[
63
+ styles.skipLabel,
64
+ { color: colors.text.primary, textAlign: isRTL ? "left" : "right" },
65
+ ]}
66
+ >
67
+ {skipLabel}
68
+ </Text>
69
+ </TouchableOpacity>
70
+ </View>
59
71
  </View>
60
- <TouchableOpacity onPress={onSkip}>
61
- <Text
62
- style={[
63
- styles.skipLabel,
64
- { color: colors.text.primary, textAlign: isRTL ? "left" : "right" },
65
- ]}
66
- >
67
- {skipLabel}
68
- </Text>
69
- </TouchableOpacity>
70
72
  </View>
71
73
 
72
74
  {/* ---------- Content ---------- */}
@@ -90,26 +90,29 @@ const align = isRTL?"row-reverse":"row";
90
90
  />
91
91
 
92
92
  {/* Terms notice */}
93
+ <View style={{
94
+ flexDirection:align,
95
+ gap: 4,
96
+ }}>
93
97
  <Text
94
98
  style={{
95
- flexDirection:align,
96
- textAlign: isRTL? "right" : "left",
97
99
  fontSize: textSize.xs,
98
100
  color: colors.text.secondary,
99
101
  fontFamily: Fonts.montserrat.regular,
100
102
  marginBottom: 40,
101
103
  }}
102
104
  >
103
- {agreeText}{" "}
105
+ {agreeText}
106
+ </Text>
104
107
  <TouchableOpacity onPress={termsLink}>
105
108
  <Text
106
- onPress={() => setShowTerms(true)}
107
109
  style={{ color: colors.primary, fontFamily: Fonts.montserrat.semiBold, textDecorationLine:"underline" }}
108
110
  >
109
111
  {termsLinkText}
110
112
  </Text>
111
113
  </TouchableOpacity>
112
- </Text>
114
+
115
+ </View>
113
116
 
114
117
  <SharpButton
115
118
  text={buttonLabel}
@@ -17,7 +17,9 @@ export default function ScreenHeader({title, description, onBack}:PageProps){
17
17
  return (
18
18
  <View style={{minHeight: 40, gap: 10}}>
19
19
  <View style={{ height: 44, flexDirection: isRTL? "row-reverse": "row", alignItems: "center", gap: 15}}>
20
- <BackIcon onBack={onBack}/>
20
+ {onBack && (
21
+ <BackIcon onBack={onBack}/>
22
+ )}
21
23
  <Text
22
24
  style={{
23
25
  fontSize: textSize.xl,