Explorar el Código

[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.
j8
Saúl Ibarra Corretgé hace 8 años
padre
commit
1f6b743bec
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      react/features/welcome/components/WelcomePage.native.js

+ 2
- 0
react/features/welcome/components/WelcomePage.native.js Ver fichero

@@ -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…
Cancelar
Guardar