69 lines
2.3 KiB
TypeScript
69 lines
2.3 KiB
TypeScript
import Spacing from "@/components/_ShareComponent/Spacing";
|
|
import ViewWrapper from "@/components/_ShareComponent/ViewWrapper";
|
|
import ButtonCustom from "@/components/Button/ButtonCustom";
|
|
import { MainColor } from "@/constants/color-palet";
|
|
import { GStyles } from "@/styles/global-styles";
|
|
import { router, useLocalSearchParams } from "expo-router";
|
|
import { Text, View } from "react-native";
|
|
import { OtpInput } from "react-native-otp-entry";
|
|
|
|
export default function VerificationView() {
|
|
const { kodeId } = useLocalSearchParams();
|
|
console.log("kodeId ", kodeId);
|
|
|
|
const handleVerification = () => {
|
|
console.log("Verification clicked");
|
|
router.push("/register");
|
|
};
|
|
return (
|
|
<>
|
|
<ViewWrapper withBackground>
|
|
<View style={GStyles.authContainer}>
|
|
<View>
|
|
<View style={GStyles.authContainerTitle}>
|
|
<Text style={GStyles.authTitle}>Verifikasi KOde OTP</Text>
|
|
<Spacing height={30} />
|
|
<Text style={GStyles.textLabel}>Masukan 4 digit kode otp</Text>
|
|
<Text style={GStyles.textLabel}>
|
|
Yang di kirim ke +6282xxxxxxxxx
|
|
</Text>
|
|
<Spacing height={30} />
|
|
<OtpInput
|
|
numberOfDigits={4}
|
|
theme={{
|
|
pinCodeContainerStyle: {
|
|
backgroundColor: MainColor.text_input,
|
|
borderRadius: 10,
|
|
borderWidth: 1,
|
|
borderColor: MainColor.yellow,
|
|
width: 60,
|
|
height: 60,
|
|
},
|
|
containerStyle: {
|
|
paddingLeft: 10,
|
|
paddingRight: 10,
|
|
},
|
|
}}
|
|
/>
|
|
<Spacing height={30} />
|
|
<Text style={GStyles.textLabel}>
|
|
Tidak menerima kode ?{" "}
|
|
<Text style={GStyles.textLabel}>Kirim Ulang</Text>
|
|
</Text>
|
|
</View>
|
|
<Spacing height={30} />
|
|
</View>
|
|
|
|
<ButtonCustom
|
|
backgroundColor={MainColor.yellow}
|
|
textColor={MainColor.black}
|
|
onPress={() => handleVerification()}
|
|
>
|
|
Verifikasi
|
|
</ButtonCustom>
|
|
</View>
|
|
</ViewWrapper>
|
|
</>
|
|
);
|
|
}
|