Browse Source

[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.
master
Saúl Ibarra Corretgé 7 years ago
parent
commit
1f6b743bec
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      react/features/welcome/components/WelcomePage.native.js

+ 2
- 0
react/features/welcome/components/WelcomePage.native.js View File

@@ -77,8 +77,10 @@ class WelcomePage extends AbstractWelcomePage {
77 77
                         autoCorrect = { false }
78 78
                         autoFocus = { false }
79 79
                         onChangeText = { this._onRoomChange }
80
+                        onSubmitEditing = { this._onJoin }
80 81
                         placeholder = { t('welcomepage.roomname') }
81 82
                         placeholderTextColor = { PLACEHOLDER_TEXT_COLOR }
83
+                        returnKeyType = { 'go' }
82 84
                         style = { styles.textInput }
83 85
                         underlineColorAndroid = 'transparent'
84 86
                         value = { this.state.room } />

Loading…
Cancel
Save