# react-native-reanimated-text-input

> React Native text input component with a floating label - using react-native-reanimated

Latest version **1.0.1** (published 2020-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-reanimated-text-input
pnpm add react-native-reanimated-text-input
yarn add react-native-reanimated-text-input
bun add react-native-reanimated-text-input
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-03-07 |
| First published | 2020-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | csath |
| Maintainers | csath |
| Keywords | react-native, animated, text-input |

## Links

- npm: https://www.npmjs.com/package/react-native-reanimated-text-input
- Repository: https://github.com/csath/react-native-reanimated-text-input
- Homepage: https://github.com/csath/react-native-reanimated-text-input#readme
- Issues: https://github.com/csath/react-native-reanimated-text-input/issues
- npm.io page: https://npm.io/package/react-native-reanimated-text-input

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-03-07
- 1.0.0 — 2020-03-07

## README

# react-native-reanimated-text-input [![npm](https://img.shields.io/npm/v/react-native-reanimated-text-input.svg)](https://npmjs.com/package/react-native-reanimated-text-input-reader)  [![npm](https://img.shields.io/npm/dm/react-native-reanimated-text-input.svg)](https://npmjs.com/package/react-native-reanimated-text-input)
React Native text input component with a floating label - using  react-native-reanimated.

## Peer Dependancies

``` 
react-native-reanimated 
```

# Demo

![Alt text](/demo.gif?raw=true "AnimatedTextInput")

# Installation
```
yarn add react-native-reanimated-text-input
```
 or 
```
npm install --save react-native-reanimated-text-input
```

# Usage
```js
import Input from 'react-native-reanimated-text-input';

 <Input
          label={"User name"}
          value={userName}
          onChangeText={(t) => setUserName(t)}
          activeColor={'green'}
          activeLabelColor={'green'}
          containerStyle={{ marginVertical: 20 }}
          onBlur={() => !userName ? setUsernameError('User name is mandotory') : null}
          error={usernameError}
 />
 ```
 # Prop-types
 
 | Prop name  |Type |
| ------------- | ------------- |
| error  | string - error text to display if any error available  |
| errorColor  | color - color to decorate text input border and error text |
| errorTextStyle  | Text style - styles to override error text styles  |
| textInputStyle  | Input style - style obj to oveerride text input styles  |
| containerStyle  | View style - style to override textinput container (EG: padding , margins)  |
| labelTextStyle  | Text style -  styles to override label(placeholder) text style  |
| isKeyboardInput  | boolean -  default true, if false this will not open keboard, instead give a callback via onPress if this is false  |
| onPress  | function -  function to execute onPress in `isKeyboardInput = true` |
| labelTextColor  | color -  default label(placeholder) color if labelTextStyle is not set  |
| activeLabelColor  | color -  default label(placeholder) color if labelTextStyle is not set and label is floaing on top(text input is active) |
| activeColor  | color -  border color when the text input is active |
| {...props} | TextInput props - All react native text input props |

# Example

checkout example/test directory and findout a react-native app.
``` 
yarn android
```
 or 
```
yarn ios
```

---
_Source: https://npm.io/package/react-native-reanimated-text-input · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
