[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:
Saúl Ibarra Corretgé 2018-01-15 11:56:03 +01:00 committed by Lyubo Marinov
parent 48f4317adb
commit 1f6b743bec
1 changed files with 2 additions and 0 deletions

View File

@ -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 } />