Kaynağa Gözat

[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 yıl önce
ebeveyn
işleme
1f6b743bec

+ 2
- 0
react/features/welcome/components/WelcomePage.native.js Dosyayı Görüntüle

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

Loading…
İptal
Kaydet