New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-rxinput

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-rxinput

React Native rxinput for IOS & Android & windows.

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
5
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

RXInput

Getting started

$ npm install react-native-rxinput --save

Usage

import RXTextInput, {RXNumberUtil} from 'react-native-rxinput'

// render
<RXTextInput
  type={'float'}
  enable={false}
  maxLength={5}
  onChangeText={(text) => {
    //...
  }

  //...TextInput.props
/>




根据 React-NativeTextInput 控制和过滤掉文本。

Props

  • ...TextInput.props
  • type
  • enable
  • valueSize

Reference


type

类型说明默认
text空(默认键盘)true
number数字键盘
int数字键盘 - 整型
float数字键盘 - 浮点型(最多保留2位小数)
amount金额 (8位数字 + 格式化)
phone手机 (11位数字 + 格式化)
bankCard银行卡 (19位数字 + 格式化)
VIN车架号 (17位字母+数字)
idCardNo身份证 (18位)
email邮箱
captcha验证码 (6位数字)
graphCaptcha校验图形验证码 (4位数字)
password输入的文本加密

enable

如果为false,文本框是不可编辑的。默认值为true。(等同于 editable)

valueSize

输入的文本字体大小。

Keywords

textinput

FAQs

Package last updated on 08 Sep 2022

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