0.0.16 • Published 5 years ago

@thang2162/react-native-text-area v0.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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 @thang2162/react-native-text-area

or,

yarn add @thang2162/react-native-text-area

Peer Dependencies

IMPORTANT! You need install them.
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",

Basic Usage

import TextArea from "@thang2162/react-native-text-area";

<TextArea
  maxCharLimit={50}
  placeholderTextColor="black"
  exceedCharCountColor="#990606"
  placeholder={"Write your review..."}
/>;

Configuration - Props

PropertyTypeDefaultDescription
stylesstylecheck the codeset your own style
backgroundColorcolor"#fbfbfb"change the TextArea's background color
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

Author

thang2162, netguy87@gmail.com

License

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