Bladeren bron

[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é 8 jaren geleden
bovenliggende
commit
1f6b743bec
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2
    0
      react/features/welcome/components/WelcomePage.native.js

+ 2
- 0
react/features/welcome/components/WelcomePage.native.js Bestand weergeven

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

Laden…
Annuleren
Opslaan