This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { View } from "react-native"; | |
import { memo } from "react"; | |
import Svg, { Circle, Path } from 'react-native-svg'; | |
// Calculate aspect ratio | |
const originalWidth = 500; | |
const originalHeight = 500; | |
const aspectRatio = originalWidth / originalHeight; | |
const SVG = () => ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
StyleSheet, | |
View, | |
Modal, | |
TouchableOpacity, | |
TouchableWithoutFeedback, | |
} from "react-native"; | |
import { memo } from "react"; | |
import { ms } from "react-native-size-matters"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
StyleSheet, | |
Text, | |
View, | |
TouchableOpacity, | |
Dimensions, | |
} from "react-native"; | |
import { memo } from "react"; | |
import Animated, { FadeInDown, FadeOutDown } from "react-native-reanimated"; | |
import { Feather } from "@expo/vector-icons"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { StyleSheet, View, Dimensions } from "react-native"; | |
import { useEffect, memo } from "react"; | |
import { LinearGradient } from "expo-linear-gradient"; | |
import Animated, { | |
useSharedValue, | |
withTiming, | |
Easing, | |
interpolate, | |
useAnimatedStyle, | |
withRepeat, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Phone numbers in English/Farsi | |
export const dynamicNumPhone = | |
/^(09|۰۹)((0|۰)[\u06F0-\u06F50-5]|(1|۱)[\u06F0-\u06F90-9]|(3|۳)[\u06F0-\u06F90-9]|(2|۲)[\u06F0-\u06F30-3]|(9|۹)[\u06F0-\u06F30-3])[\u06F0-\u06F90-9]{7}$/; | |
// Phone numbers in English | |
export const englishNumPhone = | |
/^09(0[0-5]|1[0-9]|3[0-9]|2[0-3]|9[0-3])[0-9]{7}$/; | |
// Phone numbers in Farsi | |
export const farsiNumPhone = |