
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
react-native-text-input-otp
Advanced tools
| Android Demo | iOS Demo |
|---|---|
![]() | ![]() |
| iOS | Android | Expo |
|---|---|---|
| ✅ | ✅ | ✅ |
$ npm install react-native-text-input-otp
OR
$ yarn add react-native-text-input-otp
All you need is to just import the otp text input component and then pass the required props to display the splitted otp text input as shown in the code snippet below:
import OtpTextInput from 'react-native-text-input-otp'
const App = () => {
const [otp, setOtp] = React.useState('');
return(
<OtpTextInput
otp={ otp }
setOtp={ setOtp }
digits={5}
/>
)
};
For Live Demo (Expo Snack)
| Name | Type | Reuired | Description |
|---|---|---|---|
| otp | state variable | Yes | State variable to store the otp |
| setOtp | state update method | Yes | Method to update state variable |
| digits | numeric | Yes | No of otp split fields |
| style | style object | No | Style of the input fields |
| fontStyle | style object | No | Style of font in input fields |
| focusedStyle | style object | No | Style of field when in focus |
If you would like me come up with similar packages, buy me a cup of coffee to boost my energy.
FAQs
A light weight react-native and expo split text input
We found that react-native-text-input-otp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.