Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Saúl Ibarra Corretgée30b2e14a5ec
diff --git a/react/features/welcome/components/WelcomePage.native.js b/react/features/welcome/components/WelcomePage.native.js
index 29f11fc874..f527fb1fcf 100644
--- a/react/features/welcome/components/WelcomePage.native.js
+++ b/react/features/welcome/components/WelcomePage.native.js
@@ -167,10 +167,17 @@ class WelcomePage extends AbstractWelcomePage {
* @returns {void}
*/
_onFieldFocusChange(focused) {
- focused
- && this.setState({
- _fieldFocused: true
+ if (focused) {
+ // Stop placeholder animation.
+ this._clearTimeouts();
+ this.setState({
+ _fieldFocused: true,
+ roomPlaceholder: ''
});
+ } else {
+ // Restart room placeholder animation.
+ this._updateRoomname();
+ }
Animated.timing(
this.state.hintBoxAnimation,