[RN] Join room when pressing "go" on the keyboard
Improve the experience when joining a room by removing the need to tap the join button. The keyboard type has also been set to "go", which translated on the builtin keyboard button label to be "go" (it's builtin, the operating system translates it). This works on both Android and iOS.
This commit is contained in:
parent
48f4317adb
commit
1f6b743bec
|
@ -77,8 +77,10 @@ class WelcomePage extends AbstractWelcomePage {
|
|||
autoCorrect = { false }
|
||||
autoFocus = { false }
|
||||
onChangeText = { this._onRoomChange }
|
||||
onSubmitEditing = { this._onJoin }
|
||||
placeholder = { t('welcomepage.roomname') }
|
||||
placeholderTextColor = { PLACEHOLDER_TEXT_COLOR }
|
||||
returnKeyType = { 'go' }
|
||||
style = { styles.textInput }
|
||||
underlineColorAndroid = 'transparent'
|
||||
value = { this.state.room } />
|
||||
|
|
Loading…
Reference in New Issue