0.0.7 • Published 4 years ago

react-fire-input v0.0.7

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

#react-fire-input

对TextInput进行封装

react-fire-input的安装和使用

安装

yarn add react-native-web(react中需安装)
yarn add react-native-stylesheet-adapter
yarn add react-fire-input

使用

import FormInput from 'react-fire-input';

  <FormInput
	label="姓名"
	ref="name"
	onChangeText={name => this.setState({ name })}
	placeholder="请输入姓名"
  />

参数

  rowStyle,  //最外层样式
  labelViewStyle, //左边文字view
  labelStyle,
  label,  //标题
  onChangeText, 
  defaultValue,  //初始值
  editable,		//是否可编辑
  inputStyle,  //输入框样式
  placeholder,
  disabled,
  secureTextEntry,
  value,
  clearButtonMode,
  multiline,
  keyboardType,
  isNoLine   //是否需要递补分割线