Skip to content

Commit b7c461d

Browse files
committed
Disbale reanimated for components
1 parent 23403fa commit b7c461d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/react-native-gesture-handler/src/v3/components/GestureButtons.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export const BaseButton = (props: BaseButtonProps) => {
8080
<RawButton
8181
style={[style, Platform.OS === 'ios' && { cursor: undefined }]}
8282
{...rest}
83-
disableReanimated={true}
8483
onBegin={onBegin}
8584
onStart={onStart}
8685
onEnd={onEnd}

packages/react-native-gesture-handler/src/v3/createNativeWrapper.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ export default function createNativeWrapper<P>(
4343
}
4444
);
4545

46+
if (gestureHandlerProps.disableReanimated === undefined) {
47+
gestureHandlerProps.disableReanimated = true;
48+
}
49+
4650
const native = useNativeGesture(gestureHandlerProps);
4751

4852
const componentRef = useRef<React.ComponentType<P>>(null);

0 commit comments

Comments
 (0)