Skip to content

Commit

Permalink
Set useNativeDriver=false on web to fix looping
Browse files Browse the repository at this point in the history
Animated doesn't support useNativeDriver on web, resulting in animation loops breaking when set to true anyway.
  • Loading branch information
sreuter authored Jun 21, 2022
1 parent c277840 commit 0085ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ShimmerPlaceholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ShimmerPlaceholder extends PureComponent {
toValue: 1,
delay,
duration,
useNativeDriver: true,
useNativeDriver: Platform.OS !== "web",
isInteraction,
})
);
Expand Down

0 comments on commit 0085ada

Please sign in to comment.