@towsila/expo-ui-library 3.3.12 → 3.3.14

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.3.12",
3
+ "version": "3.3.14",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -1,4 +1,4 @@
1
- import { View, ScrollView } from "react-native";
1
+ import { View, ScrollView, KeyboardAvoidingView, Platform } from "react-native";
2
2
  import PageTopBar from "../ui/PageTopBar";
3
3
  import { useAppTheme } from "../../context/ThemeContext";
4
4
  import ErrorMessage from "../ui/error";
@@ -29,6 +29,11 @@ export default function TemplateSubPage({
29
29
  const { colors } = useAppTheme();
30
30
 
31
31
  return (
32
+ <KeyboardAvoidingView
33
+ style={{ flex: 1 }}
34
+ behavior={Platform.OS === "ios" ? "padding" : "height"}
35
+ keyboardVerticalOffset={Platform.OS === "ios" ? 0 : 20}
36
+ >
32
37
  <View style={{
33
38
  flex: 1,
34
39
  paddingBottom: 60,
@@ -40,7 +45,6 @@ export default function TemplateSubPage({
40
45
  style={{ flex: 1 }}
41
46
  showsVerticalScrollIndicator={false}
42
47
  contentContainerStyle={{ flexGrow: 1 }}
43
- keyboardShouldPersistTaps="handled"
44
48
  >
45
49
  <View style={{ flex: 1, gap: 20, marginTop: 20 }}>
46
50
  {error && (
@@ -62,5 +66,6 @@ export default function TemplateSubPage({
62
66
  )}
63
67
 
64
68
  </View>
69
+ </KeyboardAvoidingView>
65
70
  );
66
71
  }
@@ -74,13 +74,13 @@ export default function ResetPasswordScreen({
74
74
  onClearError={() => form.clearError("oldPassword")}
75
75
  />
76
76
  )}
77
- <SharpInput
77
+ <Input
78
78
  label={passwordLabel}
79
79
  value={form.password}
80
80
  onChangeText={form.setPassword}
81
81
  placeholder={passwordPlaceholder}
82
- iconLeft={(color) => <LockClosed width={18} height={18} color={color}/>}
83
- iconRight={form.showPassword ? (color)=><EyeOff width={18} height={18} color={color}/> : (color)=><Eye width={18} height={18} color={color}/>}
82
+ iconLeft={"lock-closed-outline"}
83
+ iconRight={form.showPassword ? "eye-off-outline" : "eye-outline"}
84
84
  onPressIconRight={() => form.setShowPassword(!form.showPassword)}
85
85
  secureTextEntry={!form.showPassword}
86
86
  textContentType="password"
@@ -96,13 +96,13 @@ export default function ResetPasswordScreen({
96
96
  />
97
97
  )}
98
98
 
99
- <SharpInput
99
+ <Input
100
100
  label={confirmPasswordLabel}
101
101
  value={form.confirmPassword}
102
102
  onChangeText={form.setConfirmPassword}
103
103
  placeholder={confirmPasswordPlaceholder}
104
- iconLeft={(color) => <LockClosed width={18} height={18} color={color}/>}
105
- iconRight={form.showConfirmPassword ? (color)=><EyeOff width={18} height={18} color={color}/> : (color)=><Eye width={18} height={18} color={color}/>}
104
+ iconLeft={"lock-closed-outline"}
105
+ iconRight={form.showConfirmPassword ? "eye-off-outline" : "eye-outline"}
106
106
  onPressIconRight={() => form.setShowConfirmPassword(!form.showConfirmPassword)}
107
107
  secureTextEntry={!form.showConfirmPassword}
108
108
  textContentType="password"
@@ -29,7 +29,7 @@ export default function ScreenHeader({title, description, onBack}:PageProps){
29
29
  </Text>
30
30
  </View>
31
31
  <Text
32
- style={{fontSize: textSize.md, fontFamily: Fonts.montserrat.regular, color: colors.text.secondary, textAlign: isRTL ? "left" : "right" }}
32
+ style={{fontSize: textSize.md, fontFamily: Fonts.montserrat.regular, color: colors.text.secondary, textAlign: isRTL ? "left" : "right" , marginTop: 10}}
33
33
  >
34
34
  {description}
35
35
  </Text>
@@ -31,6 +31,7 @@ const {isRTL} = useLanguage();
31
31
  fontFamily: Fonts.montserrat.semiBold,
32
32
  color: colors.text.primary,
33
33
  marginBottom: 4,
34
+ textAlign: isRTL?"left":"right"
34
35
  }}>
35
36
  {cardTitle}
36
37
  </Text>