Releases: bhojaniasgar/react-native-otp-input
Release list
Release v1.3.2
🎉 Release v1.3.2
🎯 Changes
This PR makes SMS permissions opt-in by default, providing cleaner app permissions for users who don't need SMS auto-read functionality.
✨ What's New
- SMS permissions are now opt-in - No SMS permissions added by default
- Users must explicitly enable SMS features with:
OtpVerify_enableSmsFeatures = true - Cleaner app permissions for users not using SMS auto-read
- Added
SMS_SETUP.mdguide for enabling SMS features - Split Android manifests: main (no permissions) + sms (with permissions)
🔧 Technical Implementation
- Main manifest (
android/src/main/AndroidManifest.xml) - No permissions - SMS manifest (
android/src/sms/AndroidManifest.xml) - SMS-specific permissions - Gradle conditionally merges SMS manifest only when
OtpVerify_enableSmsFeatures = true
📖 Documentation
- Updated README with opt-in instructions
- Created SMS_SETUP.md with detailed setup guide
- Clear examples of when to enable SMS features
🚀 For Users
Default Behavior (No Configuration)
Works perfectly with:
- ✅ Manual OTP entry
- ✅ Clipboard auto-fill
- ✅ All styling options
- ❌ SMS Retriever API (not included)
With SMS Features Enabled
Add to android/build.gradle:
buildscript {
ext {
OtpVerify_enableSmsFeatures = true
}
}🔄 Migration for Existing Users
Users currently using SMS features need to add one line to their gradle config. See SMS_SETUP.md for details.
✅ Testing
- Build succeeds
- Beta versions tested (1.4.0-beta.0, 1.4.0-beta.1, 1.4.0-beta.3)
- SMS features work when enabled
- Basic OTP input works without SMS permissions
📦 Version
1.3.2
Summary by CodeRabbit
-
Version Update
- Version 1.3.2 released.
-
New Features
- SMS capabilities are now optional and configurable, allowing users to enable or disable SMS-related features based on their preferences.
✏️ Tip: You can customize this high-level summary in your review settings.
Installation
npm install @bhojaniasgar/react-native-otp-input@1.3.2Release v1.3.1
🎉 Release v1.3.1
This release has been automatically published to NPM.
Installation
npm install @bhojaniasgar/react-native-otp-input@1.3.1Changes
See the commit history for details.
Beta Release v1.4.0-beta.3
🧪 Beta Release v1.4.0-beta.3
This is a beta release for testing purposes.
Installation
npm install @bhojaniasgar/react-native-otp-input@beta
# or specific version
npm install @bhojaniasgar/react-native-otp-input@1.4.0-beta.3⚠️ Beta Notice
This version is not production-ready and may contain bugs or breaking changes.
Please test thoroughly before using in production.
What's New
- ✨ Added ref support for OTPInputView component
- 🎯 New methods:
setValue(),clear(),focusField(),blurAllFields() - 📝 Full TypeScript support for ref methods
- 📚 Updated documentation and examples
Feedback
Please report any issues or feedback on GitHub Issues.
Beta Release v1.4.0-beta.1
🧪 Beta Release v1.4.0-beta.1
This is a beta release for testing purposes.
Installation
npm install @bhojaniasgar/react-native-otp-input@beta
# or specific version
npm install @bhojaniasgar/react-native-otp-input@1.4.0-beta.1⚠️ Beta Notice
This version is not production-ready and may contain bugs or breaking changes.
Please test thoroughly before using in production.
What's New
- ✨ Added ref support for OTPInputView component
- 🎯 New methods:
setValue(),clear(),focusField(),blurAllFields() - 📝 Full TypeScript support for ref methods
- 📚 Updated documentation and examples
Feedback
Please report any issues or feedback on GitHub Issues.
Release v1.3.0
🎉 Release v1.3.0
This release has been automatically published to NPM.
Installation
npm install @bhojaniasgar/react-native-otp-input@1.3.0Changes
See the commit history for details.
Release v1.1.2
🎉 Release v1.1.2
This release has been automatically published to NPM.
Installation
npm install @bhojaniasgar/react-native-otp-input@1.1.2Changes
See the commit history for details.
Release v1.1.1
🎉 Release v1.1.1
This release has been automatically published to NPM.
Installation
npm install @bhojaniasgar/react-native-otp-input@1.1.1Changes
See the commit history for details.