@towsila/expo-ui-library 2.0.1 → 2.1.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
|
import {Settings } from "../../types/settingsFields"
|
|
2
2
|
import { useAppTheme } from "../../context/ThemeContext";
|
|
3
|
-
import { Text, View, TouchableOpacity } from "react-native"
|
|
3
|
+
import { Text, View, TouchableOpacity, I18nManager } from "react-native"
|
|
4
4
|
import { textSize, Fonts } from "../../tokens/typography"
|
|
5
5
|
import SharpButton from "../ui/sharpButton";
|
|
6
6
|
import TemplatePage from "../reusable/templatePage";
|
|
@@ -67,7 +67,9 @@ export default function SettingsScreen({title, subtitle, onNavigate, deleteLabel
|
|
|
67
67
|
</Text>
|
|
68
68
|
</View>
|
|
69
69
|
|
|
70
|
-
<Arrow width={20} height={20} color={colors.primary}
|
|
70
|
+
<Arrow width={20} height={20} color={colors.primary} style={[
|
|
71
|
+
I18nManager.isRTL && { transform: [{ scaleX: -1 }] },
|
|
72
|
+
]}/>
|
|
71
73
|
</TouchableOpacity>
|
|
72
74
|
</SharpContainer>
|
|
73
75
|
))}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
|
-
import { ScrollView, Text, TouchableOpacity, View } from "react-native";
|
|
2
|
+
import { I18nManager, ScrollView, Text, TouchableOpacity, View } from "react-native";
|
|
3
3
|
import Input from "./input";
|
|
4
4
|
import { Field } from "../../types/formFields";
|
|
5
5
|
import { useAppTheme } from "../../context/ThemeContext";
|
|
@@ -111,7 +111,7 @@ export const DynamicForm: React.FC<Props> = ({
|
|
|
111
111
|
<View style={{ flex: 1 }}>
|
|
112
112
|
{currentStep > 0 && backLabel && (
|
|
113
113
|
<TouchableOpacity onPress={goPrev} style={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-start", gap: 6 }}>
|
|
114
|
-
<ArrowBack width={16} height={16} color={colors.text.secondary}/>
|
|
114
|
+
<ArrowBack width={16} height={16} color={colors.text.secondary} style={[I18nManager.isRTL && { transform: [{ scaleX: -1 }] },]}/>
|
|
115
115
|
<Text style={{ color: colors.text.secondary, fontFamily: Fonts.montserrat.semiBold, fontSize: textSize.sm }}>
|
|
116
116
|
{backLabel}
|
|
117
117
|
</Text>
|
|
@@ -145,7 +145,7 @@ export const DynamicForm: React.FC<Props> = ({
|
|
|
145
145
|
<Text style={{ color: colors.text.secondary, fontFamily: Fonts.montserrat.semiBold, fontSize: textSize.sm }}>
|
|
146
146
|
{nextLabel}
|
|
147
147
|
</Text>
|
|
148
|
-
<Arrow width={16} height={16} color={colors.text.secondary}/>
|
|
148
|
+
<Arrow width={16} height={16} color={colors.text.secondary} style={[I18nManager.isRTL && { transform: [{ scaleX: -1 }] },]}/>
|
|
149
149
|
</TouchableOpacity>
|
|
150
150
|
)}
|
|
151
151
|
|
|
@@ -115,7 +115,7 @@ export const SharpDynamicForm: React.FC<Props> = ({
|
|
|
115
115
|
<View style={{ flex: 1 }}>
|
|
116
116
|
{currentStep > 0 && backLabel && (
|
|
117
117
|
<TouchableOpacity onPress={goPrev} style={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-start", gap: 6 }}>
|
|
118
|
-
<ArrowBack width={16} height={16} color={colors.text.secondary}/>
|
|
118
|
+
<ArrowBack width={16} height={16} color={colors.text.secondary} style={[I18nManager.isRTL && { transform: [{ scaleX: -1 }] },]}/>
|
|
119
119
|
<Text style={{ color: colors.text.secondary, fontFamily: Fonts.montserrat.semiBold, fontSize: textSize.sm }}>
|
|
120
120
|
{backLabel}
|
|
121
121
|
</Text>
|
|
@@ -28,7 +28,7 @@ export function useResetPasswordForm({
|
|
|
28
28
|
...(includeOldPassword ?
|
|
29
29
|
[{ name: "oldPassword", type: "password", label: "Old Password" }] : []),
|
|
30
30
|
{ name: "password", type: "password", label: "Password" },
|
|
31
|
-
{ name: "confirmPassword", type: "
|
|
31
|
+
{ name: "confirmPassword", type: "password", label: "Confirm Password" },
|
|
32
32
|
];
|
|
33
33
|
|
|
34
34
|
const formValues = {
|