sherlock-text-input
一、简介
链尚网React-Native 组件库组件:TextInput
二、安装
npm install sherlock-text-input --save
或者使用我们的组件库:
npm install sherlock-mind --save
import {TextInput} from 'sherlock-mind';
三、用例
/** * sherlock-text-input 使用 react-native的text-input实现 * 所以可以使用text-input的所有属性 * 例如: * <TextInput maxLength multiline .....> */ ; //或者 import {TextInput} from 'sherlock-mind' <View> //普通输入框 <TextInput /> //密码框 可以切换密码是否可见 <TextInputPassword color="#fff"/> //关闭显示密码图标 <TextInputPassword toggle=false /> //自定义输入框图标 icon : 基于sherlock-fy-icon图标库 <TextInput icon="msites|xx" /> //定义输入框label <TextInput label="姓名:" /></View>
四、开源许可
基于 MIT License 开源,使用代码只需说明来源,或者引用 license.txt 即可。