|
|
|
@ -6,7 +6,6 @@ import { |
|
|
|
|
Dimensions, |
|
|
|
|
TouchableOpacity, |
|
|
|
|
ActivityIndicator, |
|
|
|
|
Appearance, |
|
|
|
|
Platform, |
|
|
|
|
} from "react-native"; |
|
|
|
|
import tw from "tailwind-rn"; |
|
|
|
@ -29,7 +28,6 @@ let ref4; |
|
|
|
|
let timer = 60; |
|
|
|
|
|
|
|
|
|
function Otp(props) { |
|
|
|
|
const colorScheme = Appearance.getColorScheme(); |
|
|
|
|
const [firstCode, setFirstCode] = useState(""); |
|
|
|
|
const [secondCode, setSecondCode] = useState(""); |
|
|
|
|
const [thirdCode, setThirdCode] = useState(""); |
|
|
|
@ -128,7 +126,7 @@ function Otp(props) { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<View style={[tw("px-4 flex-1 justify-center items-center bg-white")]}> |
|
|
|
|
<View style={[tw("px-4 flex-1 justify-center items-center bg-white"), {minHeight: height}]}> |
|
|
|
|
<Svg |
|
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
|
|
xmlnsXlink="http://www.w3.org/1999/xlink" |
|
|
|
@ -163,14 +161,14 @@ function Otp(props) { |
|
|
|
|
{ |
|
|
|
|
fontSize: props.mobile ? fontSize.tiny : fontSize.base, |
|
|
|
|
fontFamily: "light", |
|
|
|
|
color: Colors.theme1[colorScheme].gray20, |
|
|
|
|
color: Colors.theme1[props.theme].gray20, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
> |
|
|
|
|
یک کد تائیدیه به شماره{" "} |
|
|
|
|
<Text |
|
|
|
|
style={{ |
|
|
|
|
color: Colors.theme1[colorScheme].greenCF, |
|
|
|
|
color: Colors.theme1[props.theme].greenCF, |
|
|
|
|
fontSize: fontSize.base, |
|
|
|
|
fontFamily: "demi", |
|
|
|
|
}} |
|
|
|
@ -190,7 +188,7 @@ function Otp(props) { |
|
|
|
|
{ |
|
|
|
|
fontSize: fontSize.xl5, |
|
|
|
|
fontFamily: "demi", |
|
|
|
|
color: Colors.theme1[colorScheme].green79, |
|
|
|
|
color: Colors.theme1[props.theme].green79, |
|
|
|
|
width: fontSize.xl5 + 40, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
@ -209,7 +207,7 @@ function Otp(props) { |
|
|
|
|
{ |
|
|
|
|
fontSize: fontSize.xl5, |
|
|
|
|
fontFamily: "demi", |
|
|
|
|
color: Colors.theme1[colorScheme].green79, |
|
|
|
|
color: Colors.theme1[props.theme].green79, |
|
|
|
|
width: fontSize.xl5 + 40, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
@ -228,7 +226,7 @@ function Otp(props) { |
|
|
|
|
{ |
|
|
|
|
fontSize: fontSize.xl5, |
|
|
|
|
fontFamily: "bold", |
|
|
|
|
color: Colors.theme1[colorScheme].green79, |
|
|
|
|
color: Colors.theme1[props.theme].green79, |
|
|
|
|
width: fontSize.xl5 + 40, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
@ -247,7 +245,7 @@ function Otp(props) { |
|
|
|
|
{ |
|
|
|
|
fontSize: fontSize.xl5, |
|
|
|
|
fontFamily: "demi", |
|
|
|
|
color: Colors.theme1[colorScheme].green79, |
|
|
|
|
color: Colors.theme1[props.theme].green79, |
|
|
|
|
width: fontSize.xl5 + 40, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
@ -270,7 +268,7 @@ function Otp(props) { |
|
|
|
|
}` |
|
|
|
|
), |
|
|
|
|
{ |
|
|
|
|
backgroundColor: Colors.theme1[colorScheme].greenCF, |
|
|
|
|
backgroundColor: Colors.theme1[props.theme].greenCF, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
onPress={() => submit()} |
|
|
|
@ -297,7 +295,7 @@ function Otp(props) { |
|
|
|
|
{ |
|
|
|
|
fontFamily: "light", |
|
|
|
|
fontSize: fontSize.base, |
|
|
|
|
color: Colors.theme1[colorScheme].gray20, |
|
|
|
|
color: Colors.theme1[props.theme].gray20, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
> |
|
|
|
@ -315,7 +313,7 @@ function Otp(props) { |
|
|
|
|
textAlign: "center", |
|
|
|
|
fontFamily: "light", |
|
|
|
|
fontSize: fontSize.base, |
|
|
|
|
color: Colors.theme1[colorScheme].greenBA, |
|
|
|
|
color: Colors.theme1[props.theme].greenBA, |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
{"بازگشت به مرحله قبل و اصلاح شماره"} |
|
|
|
@ -330,6 +328,7 @@ function Otp(props) { |
|
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
|
isLogin: state.user.status, |
|
|
|
|
mobile: state.publicApi.mobile, |
|
|
|
|
theme: state.publicApi.theme |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = { |
|
|
|
|