Просмотр исходного кода

[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 лет назад
Родитель
Сommit
1f6b743bec
1 измененных файлов: 2 добавлений и 0 удалений
  1. 2
    0
      react/features/welcome/components/WelcomePage.native.js

+ 2
- 0
react/features/welcome/components/WelcomePage.native.js Просмотреть файл

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

Загрузка…
Отмена
Сохранить