1.0.2 • Published 6 months ago
expo-otp-input v1.0.2
React Native OTP Input
A customizable OTP input component for React Native.
Installation
npm i expo-otp-input
Usage
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;