// Metro module 9261 (f9262). import _slicedToArray from "../../../_bundle/_slicedToArray"; import { useState, useRef, useEffect } from "react"; import { ScrollView, View } from "react-native"; import { createStyles } from "../../../design/components/Styles/native/createStyles"; import Module712 from "../../../_bundle/Module712"; import { TextInput } from "../../../design/void/native"; import * as _TextInput_native from "../../../design/components/TextInput/native/TextInput.native"; import { intl, t } from "../../../intl/index.native"; import { Button } from "../../../design/components/Button/native/Button.native"; import { Text } from "../../../design/components/Text/native/Text"; import KeyboardAwareView from "../../keyboard/native/KeyboardAwareView"; let c6092_9, useStyles, CodeFieldInner; const SingleCodeInput = function SingleCodeInput(props) { const { loading = false, error, count = 6, codeType = c6092_9.NUMERIC } = props; const NUMERIC = codeType; const { onCodeEntered, disabled, code, setCode } = props; const styles = useStyles(); return <_TextInput_native.TextInput errorMessage={error} value={code} autoCapitalize="characters" maxLength={count} accessibilityLabel={intl.string(t["ysthA+"])} textContentType="oneTimeCode" keyboardType={NUMERIC === c6092_9.NUMERIC ? "number-pad" : "default"} onChange={function handleChange(event) { setCode(event.replace(NUMERIC === c6092_9.NUMERIC ? /\D/g : /[^A-Z0-9]/g, "")); }} isDisabled={disabled} isClearable autoFocus />