Giter Site home page Giter Site logo

wrathchaos / react-native-text-area Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 5.0 3.42 MB

Simple and easy to use TextArea for React Native.

Home Page: https://www.freakycoder.com

JavaScript 9.23% Java 36.33% Ruby 4.50% Objective-C 25.89% Starlark 3.53% TypeScript 20.52%
react react-native text text-input text-area textarea freakycoder mobile-app software development

react-native-text-area's Introduction

React Native Text Area

Simple and easy to use TextArea for React Native

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

React Native Text Area

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

Property Type Default Description
style style default set your own style
charCount number 0 set the current character count
maxCharLimit number 200 set the maximum character count limit
charCountColor color "#ccc" change character count's color
exceedCharCountColor color "red" change the exceeded character count color
defaultCharCount number 0 set the default char count other than 0
inputRef ref default set the input reference

Author

FreakyCoder, [email protected]

License

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

react-native-text-area's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar mariomurrent-softwaresolutions avatar wrathchaos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-text-area's Issues

Failed to compile

Got this error when trying to use the component node_modules/@freakycoder/react-native-text-area/build/dist/RNTextArea.js 20:16

Module parse failed: Unexpected token (20:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|         if (!maxCharLimit)
|             return null;
>         return (<react_native_1.Text style={[
|             RNTextArea_style_1._charCountStyle(charCount > maxCharLimit ? exceedCharCountColor : charCountColor),
|             maxCharTextStyle, ```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.