@towsila/expo-ui-library 4.10.6 → 4.11.0

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.0",
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();
@@ -99,12 +101,14 @@ const align = isRTL?"row-reverse":"row";
99
101
  }}
100
102
  >
101
103
  {agreeText}{" "}
102
- <Text
103
- onPress={() => setShowTerms(true)}
104
- style={{ color: colors.primary, fontFamily: Fonts.montserrat.semiBold, textDecorationLine:"underline" }}
105
- >
106
- {termsLinkText}
107
- </Text>
104
+ <TouchableOpacity onPress={termsLink}>
105
+ <Text
106
+ onPress={() => setShowTerms(true)}
107
+ style={{ color: colors.primary, fontFamily: Fonts.montserrat.semiBold, textDecorationLine:"underline" }}
108
+ >
109
+ {termsLinkText}
110
+ </Text>
111
+ </TouchableOpacity>
108
112
  </Text>
109
113
 
110
114
  <SharpButton