0.1.5 • Published 2 years ago

@freakycoder/react-native-text-area v0.1.5

Weekly downloads
10
License
MIT
Repository
github
Last release
2 years ago

Simple and easy to use TextArea for React Native

npm version npm Platform - Android and iOS License: MIT styled with prettier

Installation

Add the dependency:

React Native

npm i @freakycoder/react-native-text-area

Peer Dependencies

IMPORTANT! You need install them

Zero Dependency

Basic Usage

import RNTextArea from "@freakycoder/react-native-text-area";

<RNTextArea
  maxCharLimit={50}
  placeholderTextColor="black"
  exceedCharCountColor="#990606"
  placeholder={"Write your review..."}
  onChangeText={(text: string) => console.log("Text: ", text)}
/>;

Example Project 😍

You can checkout the example project 🥰

Simply run

  • npm i
  • react-native run-ios/android

should work of the example project.

Configuration - Props

PropertyTypeDefaultDescription
stylestyledefaultset your own style
charCountnumber0set the current character count
maxCharLimitnumber200set the maximum character count limit
charCountColorcolor"#ccc"change character count's color
exceedCharCountColorcolor"red"change the exceeded character count color
defaultCharCountnumber0set the default char count other than 0
inputRefrefdefaultset the input reference

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Text Area Library is available under the MIT license. See the LICENSE file for more info.