1.0.2 • Published 6 months ago

expo-otp-input v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

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;