@towsila/expo-ui-library 3.5.2 → 3.5.3
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,10 +1,10 @@
|
|
|
1
1
|
import { Text, View } from "react-native";
|
|
2
|
-
import AnimatedSuccessIcon from "../ui/AnimatedSuccessIcon";
|
|
3
2
|
import { useAppTheme } from "../../context/ThemeContext";
|
|
4
3
|
import { useLanguage } from "../../context/LanguageContext";
|
|
5
|
-
import ScreenHeader from "../ui/PageTopBar";
|
|
6
|
-
import SharpButton from "../ui/sharpButton";
|
|
7
4
|
import { Fonts, textSize } from "../../tokens/typography";
|
|
5
|
+
import AnimatedSuccessIcon from "../ui/AnimatedSuccessIcon";
|
|
6
|
+
import SharpButton from "../ui/sharpButton";
|
|
7
|
+
|
|
8
8
|
|
|
9
9
|
interface SuccessScreenProps {
|
|
10
10
|
title?: string;
|
|
@@ -29,10 +29,17 @@ export default function SuccessScreen({
|
|
|
29
29
|
const {isRTL} = useLanguage();
|
|
30
30
|
return (
|
|
31
31
|
<View style={{ flex: 1, paddingHorizontal: 32, paddingVertical: 60 }}>
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
<Text style={{color: colors.text.primary, textAlign: isRTL ? "left" : "right", fontFamily: Fonts.montserrat.semiBold, fontSize: textSize.xxl}}>{title}</Text>
|
|
33
|
+
{subtitle && (
|
|
34
|
+
<Text
|
|
35
|
+
style={{fontSize: textSize.md, fontFamily: Fonts.montserrat.regular, color: colors.text.secondary, textAlign: isRTL ? "left" : "right"}}
|
|
36
|
+
>
|
|
37
|
+
{subtitle}
|
|
38
|
+
</Text>
|
|
39
|
+
)}
|
|
40
|
+
<View style={{ flex: 1, marginTop: 70, alignItems: isRTL ? "flex-start" : "flex-end", gap: 20 }}>
|
|
41
|
+
<View style={{ backgroundColor: colors.primary + "30", padding: 25, borderRadius: 30 }}>
|
|
42
|
+
<AnimatedSuccessIcon color={colors.primary} size={37} strokeWidth={2} />
|
|
36
43
|
</View>
|
|
37
44
|
<Text style={{ color: colors.text.secondary, textAlign: isRTL ? "left" : "right", fontFamily: Fonts.montserrat.regular, fontSize: textSize.md }}>
|
|
38
45
|
{description}
|