Skip to content

Commit

Permalink
useNativeDriver to false
Browse files Browse the repository at this point in the history
  • Loading branch information
tero-paananen committed May 3, 2022
1 parent 07a6c1d commit 76fc6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DraggableItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const DraggableItem = ({
const height = isBelow && mode === 'expands' ? itemHeight * 2 : itemHeight;
Animated.spring(animatedHeightRef.current, {
toValue: height,
useNativeDriver: Platform.OS !== 'windows',
useNativeDriver: false, // if enabled => "error: Style property 'height' is not supported by native animated module"
}).start();
}, [isBelow, itemHeight, mode]);

Expand Down

0 comments on commit 76fc6c0

Please sign in to comment.