Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

sherlock-text-input

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sherlock-text-input

链尚网React-Native 组件库组件:TextInput

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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-text-input';

//或者 import {TextInput} from 'sherlock-mind'

<View>
  //普通输入框
  <TextInput />
  //密码框 可以切换密码是否可见
  <TextInput.Password color="#fff"/>
  //关闭显示密码图标
  <TextInput.Password toggle={false} />
  //自定义输入框图标 icon : 基于sherlock-fy-icon图标库 
  <TextInput icon="msites|xx" />
  //定义输入框label
  <TextInput label={"姓名:"} />
</View>

四、开源许可

基于 MIT License 开源,使用代码只需说明来源,或者引用 license.txt 即可。

Keywords

sherlock

FAQs

Package last updated on 25 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts