Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@codsod/react-native-otp-input
Advanced tools
A customizable OTP input component for React Native with TypeScript support, enabling seamless user authentication with flexible input handling and cross-platform compatibility.
A customizable OTP input component for React Native, designed to simplify user authentication through one-time passwords. This package offers an intuitive interface and flexible functionality, making it ideal for mobile applications.
To install the package, use npm or yarn:
npm install @codsod/react-native-otp-input
import React, { View } from "react";
import OTPInput from "@codsod/react-native-otp-input";
const Home = () => {
const [otp, setOTP] = useState("");
return (
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
<OTPInput length={6} onOtpComplete={(txt: string) => setOTP(txt)} />
</View>
);
};
export default Home;
Prop | Type | Description | Default |
---|---|---|---|
length | number | The number of input fields for the OTP. | 4 |
onOtpComplete | Function | Callback fired when the OTP input is complete, receiving the entered OTP. | - |
style | style | Custom styles for the OTP container. | - |
inputStyle | style | Custom styles for each input field. | - |
Title and Description: Adjusted the title and description to focus on OTP input functionality instead of chat interfaces.
Features Section: Clearly listed relevant features that are specific to OTP input, highlighting usability and flexibility.
Installation and Usage: Improved the example code for clarity and usability. Included more context in the example for better understanding.
Props Table: Corrected the descriptions of props to accurately reflect their purposes.
Contribution and License Sections: Added these sections to encourage community engagement and clarify the licensing.
Feel free to modify any sections further to better align with your branding or preferences. This README should provide a solid foundation for users to understand and utilize your OTP input component effectively! If you have any more requests or need further assistance, let me know!
FAQs
A customizable OTP input component for React Native with TypeScript support, enabling seamless user authentication with flexible input handling and cross-platform compatibility.
We found that @codsod/react-native-otp-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.