diff --git a/index.tsx b/index.tsx index c98a96d..109003c 100644 --- a/index.tsx +++ b/index.tsx @@ -127,8 +127,8 @@ export default class MarqueeText extends PureComponent { this.setState({ animating: true }); - this.setTimeout(() => { - this.calculateMetrics(); + this.setTimeout(async () => { + await this.calculateMetrics(); if (!this.contentFits) { Animated.timing(this.animatedValue, {