Skip to content

Commit 63fa2c2

Browse files
committed
Set useNativeDriver properties
1 parent 27e137d commit 63fa2c2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/RefreshControl.web.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default function RefreshControl({
5050
Animated.timing(pullDownSwipeMargin.current, {
5151
toValue: refreshing ? 50 : 0,
5252
duration: 350,
53+
useNativeDriver: false,
5354
}).start()
5455
if (refreshing) {
5556
pullPosReachedState.current = 0
@@ -65,6 +66,7 @@ export default function RefreshControl({
6566
Animated.timing(pullDownSwipeMargin.current, {
6667
toValue: 0,
6768
duration: 350,
69+
useNativeDriver: false,
6870
}).start()
6971
}
7072
}, [])
@@ -91,6 +93,7 @@ export default function RefreshControl({
9193
Animated.timing(pullPosReachedAnimated.current, {
9294
toValue: newValue,
9395
duration: 150,
96+
useNativeDriver: false,
9497
}).start()
9598
}
9699
},

0 commit comments

Comments
 (0)