# react-native-input-clonable

> [![npm version](https://badge.fury.io/js/react-native-input-clonable.svg)](https://badge.fury.io/js/react-native-input-clonable) [![Downloads](http://img.shields.io/npm/dy/react-native-input-clonable.svg?style=flat-square)](https://img.shields.io/npm/dy/r

Latest version **1.0.1** (published 2019-10-01) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-10-01 |
| First published | 2019-10-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 434.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Erick Maeda |
| Maintainers | erickmaeda |
| Keywords | react-native, react, input, clone, input, clone, multiple, input |

## Links

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

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-10-01
- 1.0.0 — 2019-10-01

## README

# React Native Input Clonable
[![npm version](https://badge.fury.io/js/react-native-input-clonable.svg)](https://badge.fury.io/js/react-native-input-clonable)
[![Downloads](http://img.shields.io/npm/dy/react-native-input-clonable.svg?style=flat-square)](https://img.shields.io/npm/dy/react-native-input-clonable)

Create customizable inputs clonables.

Works with Android and iOS.

## Demo
![Alt Text](https://raw.githubusercontent.com/ErickMaeda/react-native-input-clonable/master/src/assets/ios.gif)

## Installation
```console
foo@bar:~$ npm install --save react-native-input-clonable
```

## Usage
```javascript
import MultipleTextInput from 'react-native-input-clonable';

// Your code here
<MultipleTextInput
  autoCapitalize={'none'}
  textInputPlaceholder='Email'
  textInputKeyboardType='email-address'
  textInputs={[{ text: 'first@gmail.com' }, { text: 'second@gmail.com' }]}
  onAdd={() => console.log("onAdd")}
  onRemove={(index) => console.log("onRemove", index)}
  onChangeText={(input, index) => console.log("onChangeText", input, index)}
  maxTextInput={10}
  inputStyle={{ fontSize: 14, width: 190 }}
/>
```
Props

---
|prop|type|default|obs
| --- | --- | --- | --- |
autoCapitalize|string|none|---
textInputPlaceholder|string|null|---
textInputKeyboardType|string|null|---
textInputs|array|[{text: ""}]|Initial array of inputs. It should be in format {text: "Your input"}
onAdd|function|() => {}|Function invoked when a input was added
onRemove|function|(index) => {}|Function invoked when a input has been removed. The callback function comes with index parameter
onChangeText|function|(input, index) => {}|Function invoked on some input change text. The callback function comes with input and index parameters
maxTextInput|int|3|---
inputStyle|object|{}|---
---

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