Input 输入框

优质
小牛编辑
127浏览
2023-12-01

输入框组件。

Usage

全部引入

import { Input } from 'beeshell';

按需引入

import { Input } from 'beeshell/dist/components/Input';

Examples

iOS 平台

image

Android 平台支持清空功能

image

Code

详细 Code

import { Input } from 'beeshell';

<Input
  textAlign='right'
  value={''}
  placeholder='请输入地址'
  onChange={(value) => {
    console.log(value)
  }}
/>

API

Props

组合使用 RN TextInput 组件,透传 TextInput 所有属性。

NameTypeRequiredDefaultDescription
styleViewStylefalse{}样式
valuestringfalse''
onChangeFunctionfalsenull值变化的回调,参数为输入的文本字符串