Skip to content

Releases: bhojaniasgar/react-native-otp-input

Release v1.3.2

Choose a tag to compare

@bhojaniasgar bhojaniasgar released this 29 Nov 07:34
355cd3f

🎉 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.md guide 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.2

Release v1.3.1

Choose a tag to compare

@bhojaniasgar bhojaniasgar released this 23 Nov 07:52
39b8b7b

🎉 Release v1.3.1

This release has been automatically published to NPM.

Installation

npm install @bhojaniasgar/react-native-otp-input@1.3.1

Changes

See the commit history for details.

Beta Release v1.4.0-beta.3

Pre-release

Choose a tag to compare

@bhojaniasgar bhojaniasgar released this 19 Nov 14:38

🧪 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

Pre-release

Choose a tag to compare

@bhojaniasgar bhojaniasgar released this 19 Nov 14:14

🧪 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

Choose a tag to compare

@bhojaniasgar bhojaniasgar released this 19 Nov 13:16
82f1877

🎉 Release v1.3.0

This release has been automatically published to NPM.

Installation

npm install @bhojaniasgar/react-native-otp-input@1.3.0

Changes

See the commit history for details.

Release v1.1.2

Choose a tag to compare

@bhojaniasgar bhojaniasgar released this 18 Nov 14:41
4d3da35

🎉 Release v1.1.2

This release has been automatically published to NPM.

Installation

npm install @bhojaniasgar/react-native-otp-input@1.1.2

Changes

See the commit history for details.

Release v1.1.1

Choose a tag to compare

@bhojaniasgar bhojaniasgar released this 18 Nov 14:37

🎉 Release v1.1.1

This release has been automatically published to NPM.

Installation

npm install @bhojaniasgar/react-native-otp-input@1.1.1

Changes

See the commit history for details.

v1.0.1

Choose a tag to compare

@bhojaniasgar bhojaniasgar released this 14 Nov 13:53
8b5cdb5
Release v1.0.1