1. 程式人生 > >RN中設定鍵盤的型別

RN中設定鍵盤的型別

<TextInput

keyboardType="numeric"

returnKeyType="search"/>

決定返回鍵的樣式: 

1

2

returnKeyType enum('default''go''google''join''next',

 'route''search''send''yahoo''done''emergency-call'

)

決定開啟哪種鍵盤,例如,數字鍵盤:

1

2

3

4

keyboardType enum('default'"ascii-capable"

'numbers-and-punctuation''url''number-pad''phone-pad',

 'name-phone-pad''email-address''decimal-pad''twitter',

  'web-search'

"numeric")