@towsila/expo-ui-library 4.10.6 → 4.11.1

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.10.6",
3
+ "version": "4.11.1",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -31,6 +31,7 @@ interface SignupProps {
31
31
  agreeText?: string; // "By continuing, you agree to our"
32
32
  termsLinkText?: string; // "Terms & Privacy"
33
33
  t?: (key: string) => string;
34
+ termsLink?:()=>void;
34
35
  }
35
36
 
36
37
  export default function SignUpScreen({
@@ -52,6 +53,7 @@ export default function SignUpScreen({
52
53
  agreeText = "By continuing, you agree",
53
54
  termsLinkText = "Terms & Privacy",
54
55
  t,
56
+ termsLink,
55
57
  }: SignupProps) {
56
58
  const [showTerms, setShowTerms] = useState(true);
57
59
  const { colors } = useAppTheme();
@@ -88,24 +90,29 @@ const align = isRTL?"row-reverse":"row";
88
90
  />
89
91
 
90
92
  {/* Terms notice */}
93
+ <View style={{
94
+ flexDirection:align,
95
+ gap: 4,
96
+ }}>
91
97
  <Text
92
98
  style={{
93
- flexDirection:align,
94
- textAlign: isRTL? "right" : "left",
95
99
  fontSize: textSize.xs,
96
100
  color: colors.text.secondary,
97
101
  fontFamily: Fonts.montserrat.regular,
98
102
  marginBottom: 40,
99
103
  }}
100
104
  >
101
- {agreeText}{" "}
102
- <Text
103
- onPress={() => setShowTerms(true)}
104
- style={{ color: colors.primary, fontFamily: Fonts.montserrat.semiBold, textDecorationLine:"underline" }}
105
- >
106
- {termsLinkText}
105
+ {agreeText}
107
106
  </Text>
108
- </Text>
107
+ <TouchableOpacity onPress={termsLink}>
108
+ <Text
109
+ style={{ color: colors.primary, fontFamily: Fonts.montserrat.semiBold, textDecorationLine:"underline" }}
110
+ >
111
+ {termsLinkText}
112
+ </Text>
113
+ </TouchableOpacity>
114
+
115
+ </View>
109
116
 
110
117
  <SharpButton
111
118
  text={buttonLabel}