fix(rn) stop room name generator when field is focused

Fixes: https://github.com/jitsi/jitsi-meet/issues/8307
This commit is contained in:
Saúl Ibarra Corretgé 2021-01-12 14:37:44 +01:00 committed by Saúl Ibarra Corretgé
parent 7f1894dd57
commit e30b2e14a5
1 changed files with 10 additions and 3 deletions

View File

@ -167,10 +167,17 @@ class WelcomePage extends AbstractWelcomePage {
* @returns {void} * @returns {void}
*/ */
_onFieldFocusChange(focused) { _onFieldFocusChange(focused) {
focused if (focused) {
&& this.setState({ // Stop placeholder animation.
_fieldFocused: true this._clearTimeouts();
this.setState({
_fieldFocused: true,
roomPlaceholder: ''
}); });
} else {
// Restart room placeholder animation.
this._updateRoomname();
}
Animated.timing( Animated.timing(
this.state.hintBoxAnimation, this.state.hintBoxAnimation,