Skip to content

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

ref(circular-label): animate after dom updates

Leonard Kim5cb4bec633bf
diff --git a/react/features/base/label/components/CircularLabel.native.js b/react/features/base/label/components/CircularLabel.native.js
index 864ac7694b..6b6c5cd281 100644
--- a/react/features/base/label/components/CircularLabel.native.js
+++ b/react/features/base/label/components/CircularLabel.native.js
@@ -64,17 +64,24 @@ export default class CircularLabel extends AbstractCircularLabel<Props, State> {
this.state = {
pulseAnimation: new Animated.Value(0)
};
+ }
- this._maybeToggleAnimation({}, props);
+ /**
+ * Implements {@code Component#componentDidMount}.
+ *
+ * @inheritdoc
+ */
+ componentDidMount() {
+ this._maybeToggleAnimation({}, this.props);
}
/**
- * Implements {@code Component#componentWillReceiveProps}.
+ * Implements {@code Component#componentDidUpdate}.
*
* @inheritdoc
*/
- componentWillReceiveProps(newProps: Props) {
- this._maybeToggleAnimation(this.props, newProps);
+ componentDidUpdate(prevProps: Props) {
+ this._maybeToggleAnimation(prevProps, this.props);
}
/**