Skip to content

Commit fad1d29

Browse files
authored
Merge pull request #5955 from parasharrajat/sync-icon
fix: spinner on web
2 parents d39fbf8 + 3edf267 commit fad1d29

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/libs/useNativeDriver/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default false;
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default true;

src/styles/animation/SpinningIndicatorAnimation.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {Animated, Easing} from 'react-native';
2+
import useNativeDriver from '../../libs/useNativeDriver';
23

34
class SpinningIndicatorAnimation {
45
constructor() {
@@ -23,7 +24,9 @@ class SpinningIndicatorAnimation {
2324
duration: 2000,
2425
easing: Easing.linear,
2526
isInteraction: false,
26-
useNativeDriver: true,
27+
28+
// Animated.loop does not work with `useNativeDriver: true` on Web
29+
useNativeDriver,
2730
}),
2831
).start();
2932
}

0 commit comments

Comments
 (0)