1.1.3 • Published 7 years ago

react-native-text-input-wrapper v1.1.3

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

TextInputWrapper

A wrapper for TextInput in react-native. It provides a small red cross to help user clear TextInput's value.

Install

Make sure that you are in your React Native project directory and run:

npm install react-native-text-input-wrapper --save

Usage

Import TextInputWrapper as a JavaScript module:

import TextInputWrapper from 'react-native-text-input-wrapper';

1.This is an example of how to use the component and some of the commonly used props that it supports:

  <TextInputWrapper
        placeholder="username/phone"
        val={this.state.username}
        onChangeText={(value)=>{
            this.setState({username:value})
        }}
    />

2.it support search model,which use a search icon instead of a cancel icon,you can get notified by register the onConfirm callback

      <TextInputWrapper
            placeholder="username/phone"
            val={this.state.username}
            onChangeText={(value)=>{
                this.setState({username:value})
            }}
            onConfirm={()=>{
                
            }}
        />
1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago