UNPKG

expo-otp-input

Version:
36 lines (27 loc) 526 B
# React Native OTP Input A customizable OTP input component for React Native. ## Installation ```bash npm i expo-otp-input ``` ## Usage ```tsx import React, { useState } from "react"; import OTPInput from "expo-otp-input"; const App = () => { const [otp, setOtp] = useState(""); return ( <OTPInput value={otp} onChange={setOtp} otpLength={4} inputSize={60} containerStyle={{}} boxStyle={{}} textStyle={{}} cursorStyle={{}} /> ); }; export default App; ```