From 0085ada7365c1c88836e4dda46aa8689f02ca930 Mon Sep 17 00:00:00 2001 From: Sascha Reuter Date: Tue, 21 Jun 2022 23:12:50 +1000 Subject: [PATCH] Set useNativeDriver=false on web to fix looping Animated doesn't support useNativeDriver on web, resulting in animation loops breaking when set to true anyway. --- lib/ShimmerPlaceholder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ShimmerPlaceholder.js b/lib/ShimmerPlaceholder.js index 7710b0e..9ca129c 100644 --- a/lib/ShimmerPlaceholder.js +++ b/lib/ShimmerPlaceholder.js @@ -15,7 +15,7 @@ class ShimmerPlaceholder extends PureComponent { toValue: 1, delay, duration, - useNativeDriver: true, + useNativeDriver: Platform.OS !== "web", isInteraction, }) );