> [TextInput](http://facebook.github.io/react-native/docs/textinput.html#content)
## 屬性
| 名稱 | 類型 | 意義 | 默認值 |
| --- | --- | --- | --- |
| autoCapitalize | enum(‘none’, ‘sentences’, ‘words’, ‘characters’) | 針對哪種類型自動大小寫 | 無 |
| autoCorrect | bool | 自動更正 | true |
| autoFocus | bool | 自動對焦 | false |
| defaultValue | string | 默認顯示的值 | 無 |
| editable | bool | 是否可編輯 | 無 |
| keyboardType | enum(“default”, ‘numeric’, ‘email-address’, “ascii-capable”, ‘numbers-and-punctuation’, ‘url’, ‘number-pad’, ‘phone-pad’, ‘name-phone-pad’, ‘decimal-pad’, ‘twitter’, ‘web-search’) | 鍵盤類型 | 無 |
| multiline | bool | 是否支持多行 | false |
| onBlur | function | 輸入的信息模糊時回調該函數 | 無 |
| onChange | function | 輸入框中文本信息改變時調用該函數 | 無 |
| onChangeText | function | 輸入框中文本信息改變時調用該函數,參數為被改變的文本 | 無 |
| onEndEditing | function | 輸入結束時調用的函數 | 無 |
| onFocus | function | 當光標在輸入框上調用的函數 | 無 |
| onLayout | function | 改變輸入框的布局時調用的函數 | 無 |
| onSubmitEditing | function | 當提交輸入時調用的函數 | 無 |
| placeholder | string | 輸入框的提示信息 | 無 |
| placeholderTextColor | string | 輸入框提示信息的顏色 | 無 |
| secureTextEntry | bool | 安全文本,比如密碼框 | false |
| style | style | 樣式 | 無 |
| testID | string | 用于測試的id號 | 無 |
| textAlign | enum(‘start’, ‘center’, ‘end’) | 文本較之輸入框的布局 | 無 |
| value | string | 文本框的值 | 無 |
| clearButtonMode | enum(‘never’, ‘while-editing’, ‘unless-editing’, ‘always’) | (iOS特有)輸入框的右邊清除按鈕出現的時機 | 無 |
| clearTextOnFocus | bool | (iOS特有)當編輯開始時是否情況里面的文本 | 無 |
| enablesReturnKeyAutomatically | bool | (iOS特有)為true時,沒有文本時,ruturn按鈕是不見的,當有文本時,自動顯示 | false |
| maxLength | number | (iOS特有)最大長度 | 無 |
| returnKeyType | enum(‘default’, ‘go’, ‘google’, ‘join’, ‘next’, ‘route’, ‘search’, ‘send’, ‘yahoo’, ‘done’, ‘emergency-call’) | return鍵的類型 | 無 |
| selectTextOnFocus | bool | 選擇文本時自動對焦 | 無 |
| selectionState | DocumentSelectionState | 狀態 | 無 |
| textAlignVertical | enum(‘top’, ‘center’, ‘bottom’) | (android特有)垂直方向上的布局 | 無 |
| underlineColorAndroid | string | 下劃線的顏色 | 無 |
- 前言
- react-native試玩(1)
- react-native試玩(2)
- (3)-窺探開發者選項
- (4)-新建項目
- (5)-小菊花控件
- (6)-日期選擇控件
- (7)-圖片控件
- (8)-列表視圖
- (9)-地圖視圖
- (10)-導航欄
- (11)-模態
- (12)-iOS中導航欄
- (13)-選擇控件
- (14)-iOS中進度欄
- (15)-滾動視圖
- (16)-iOS分段控制控件
- (17)-iOS中的滑動條
- (18)-開關控件
- (19)-分頁欄
- (20)-分頁欄中的元素
- (21)-文本控件
- (22)-文本輸入框
- (23)-觸摸高亮
- (24)-觸摸模糊
- (25)-觸摸無反饋
- (26)-網頁視圖
- (27)-上拉菜單API
- (28)-彈出框API
- (29)-React Native Playground
- (30)-應用狀態API
- (31)-訪問相冊API
- (32)-推送通知API
- (33)-狀態欄API
- (34)-配置Android開發環境
- (35)-react-native-icons插件