Skip to content

Instantly share code, notes, and snippets.

View Dung1128's full-sized avatar
🏠
Working from home

Nguyễn Trần Dũng Dung1128

🏠
Working from home
  • HaiVan
  • HaNoi
View GitHub Profile
@Dung1128
Dung1128 / react-native-swipeable+0.6.0.patch
Created June 3, 2021 03:20
Fix Animated warning when using react-native-swipeable
diff --git a/node_modules/react-native-swipeable/lib/index.js b/node_modules/react-native-swipeable/lib/index.js
index 57996ad..634b136 100644
--- a/node_modules/react-native-swipeable/lib/index.js
+++ b/node_modules/react-native-swipeable/lib/index.js
@@ -78,7 +78,7 @@ var Swipeable = function (_PureComponent) {
}, _this._unmounted = false, _this._handlePan = _reactNative.Animated.event([null, {
dx: _this.state.pan.x,
dy: _this.state.pan.y
- }]), _this._handleMoveShouldSetPanResponder = function (event, gestureState) {
+ }], {useNativeDriver: false}), _this._handleMoveShouldSetPanResponder = function (event, gestureState) {