diff --git a/blog/2018/01/18/implementing-twitters-app-loading-animation-in-react-native.html b/blog/2018/01/18/implementing-twitters-app-loading-animation-in-react-native.html index 914d2df76d1..39343e20c2d 100644 --- a/blog/2018/01/18/implementing-twitters-app-loading-animation-in-react-native.html +++ b/blog/2018/01/18/implementing-twitters-app-loading-animation-in-react-native.html @@ -84,7 +84,7 @@

Since I’m thinking about this animation as steps occurring at different points in time along the complete animation, we will start our Animated.Value at 0, representing 0% complete, and end our value at 100, representing 100% complete.

Our initial component state will be the following.

state = {
-  loadingProgress: Animated.Value(0),
+  loadingProgress: new Animated.Value(0),
 };
 

When we are ready to begin the animation, we tell Animated to animate this value to 100.

diff --git a/blog/index.html b/blog/index.html index 54e1733588c..5f2b991261a 100644 --- a/blog/index.html +++ b/blog/index.html @@ -84,7 +84,7 @@

Since I’m thinking about this animation as steps occurring at different points in time along the complete animation, we will start our Animated.Value at 0, representing 0% complete, and end our value at 100, representing 100% complete.

Our initial component state will be the following.

state = {
-  loadingProgress: Animated.Value(0),
+  loadingProgress: new Animated.Value(0),
 };
 

When we are ready to begin the animation, we tell Animated to animate this value to 100.