More Premium Hugo Themes Premium React Themes

React Native Text Input Mask

Text input mask for React Native, Android and iOS

React Native Text Input Mask

Text input mask for React Native, Android and iOS

Github Stars Github Stars: 1201
Last Commit Last Commit: Mar 19, 2025 -
First Commit Created: Feb 24, 2024 -
React Native Text Input Mask screenshot

Overview:

The react-native-text-input-mask is a text input mask designed for React Native on both iOS and Android platforms. It allows for the formatting of text input in a controlled manner to meet specific requirements. The installation instructions provided below outline how users can set up and configure the text input mask for their React Native projects.

Features:

  • Text Input Mask: Enables users to format text input in React Native.
  • Support for iOS and Android: Works seamlessly on both iOS and Android platforms.
  • Easy Setup: Provides step-by-step installation instructions for iOS and Android configurations.
  • Versioning: Follows semantic versioning for easy updates and backward compatibility.

Installation:

iOS:

  1. Configure pods (static or dynamic linking)
  2. Run pod install in the ios directory.

Android:

  1. Open android/app/src/main/java/[...]/MainActivity.java.
  2. Add import com.RNTextInputMask.RNTextInputMaskPackage; to the file’s top imports.
  3. Add new RNTextInputMaskPackage() to the list returned by the getPackages() method.
  4. Append necessary lines to android/settings.gradle.
  5. Insert required lines inside the dependencies block in android/app/build.gradle.

Summary:

The react-native-text-input-mask is a versatile tool for formatting text input in React Native projects on both iOS and Android platforms. With a focus on ease of use and compatibility, this library provides developers with the means to create custom input masks for their applications. By following the provided installation instructions, users can seamlessly integrate this text input mask into their projects and enjoy the benefits of controlled text input formatting.