alpha-editable-text-react-native

0.1.4 • Public • Published

alpha-editable-text-react-native

Installation

npm i --save alpha-editable-text-react-native

Usage

import EditableText from './EditableText/EditableText';
<EditableText
                        value={this.state.name}
                        fontSize={12}
                        color={black50}
                        width={350}
                        multiline={true}
                        maxLength={128}
                        numberOfLines={4}
                        textAlign='justify'
                        Validate={(val)=>{
                            if(val==''){
                                return {'err':true,'msg':'Fill bio'}
                            }
                            return{'err':false,'msg':''}
                        }}
                        borderBottomColor='red'
                        borderBottomWidth={1}
                        ChangedValue={(val)=>{
                           this.setState({name:val})
                        }}
                        />

Example

Check full example in the Example folder.

License

© Ronak Dholariya

Package Sidebar

Install

npm i alpha-editable-text-react-native

Weekly Downloads

5

Version

0.1.4

License

ICS

Unpacked Size

31.9 kB

Total Files

12

Last publish

Collaborators

  • ronak7700