import { ButtonForm } from "@/components/buttonForm"; import Text from '@/components/Text'; import { ConstEnv } from "@/constants/ConstEnv"; import Styles from "@/constants/Styles"; import { useAuthSession } from "@/providers/AuthProvider"; import { useTheme } from "@/providers/ThemeProvider"; import CryptoES from "crypto-es"; import React, { useState } from "react"; import { Image, View } from "react-native"; import { CodeField, Cursor, useBlurOnFulfill, useClearByFocusCell, } from 'react-native-confirmation-code-field'; export default function Index() { const [value, setValue] = useState(''); const ref = useBlurOnFulfill({ value, cellCount: 4 }); const [props, getCellOnLayoutHandler] = useClearByFocusCell({ value, setValue, }); const { colors } = useTheme(); const { signIn } = useAuthSession(); const login = (): void => { // WARNING: This is a hardcoded bypass for development purposes. // It should be removed or secured before production release. if (__DEV__) { const random: string = 'contohLoginMobileDarmasaba'; var mytexttoEncryption = "contohLoginMobileDarmasaba" const encrypted = CryptoES.AES.encrypt(mytexttoEncryption, ConstEnv.pass_encrypt).toString(); signIn(encrypted); } else { console.warn("Bypass login disabled in production."); } } return ( {/* PERBEKEL DARMASABA */} Verifikasi Nomor Telepon Masukkan kode yang kami kirimkan melalui WhatsApp +628980185458 ( {symbol || (isFocused ? : null)} )} /> { router.push("/home") }} onPress={login} /> Tidak Menerima kode verifikasi? Kirim Ulang ); }