Skip to content

Commit

Permalink
fix merge problems
Browse files Browse the repository at this point in the history
  • Loading branch information
sumo-slonik committed Dec 18, 2024
1 parent 3af5013 commit fce7094
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Modal/ReactNativeModal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ function ReactNativeModal(incomingProps: ModalProps) {

const getDeviceHeight = () => props.deviceHeight ?? deviceHeight;
const getDeviceWidth = () => props.deviceWidth ?? deviceWidth;
const Yoffset = useSharedValue<number>(0);
const Xoffset = useSharedValue<number>(0);
const yOffset = useSharedValue<number>(0);
const xOffset = useSharedValue<number>(0);

const buildPanResponder = useCallback(() => {
setPanResponder(
Expand All @@ -80,11 +80,11 @@ function ReactNativeModal(incomingProps: ModalProps) {
pan,
deviceHeight,
deviceWidth,
Xoffset,
Yoffset,
xOffset,
yOffset,
props.swipeDirection,
),
onPanResponderRelease: onPanResponderRelease(props, currentSwipingDirectionRef, setInSwipeClosingState, pan, Xoffset, Yoffset),
onPanResponderRelease: onPanResponderRelease(props, currentSwipingDirectionRef, setInSwipeClosingState, pan, xOffset, yOffset),
}),
);
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
Expand Down Expand Up @@ -196,7 +196,7 @@ function ReactNativeModal(incomingProps: ModalProps) {
animationOutTiming={animationOutTiming}
isVisible={isVisibleState}
style={[computedStyle]}
panPosition={isSwipeable ? {translateX: Xoffset, translateY: Yoffset} : undefined}
panPosition={isSwipeable ? {translateX: xOffset, translateY: yOffset} : undefined}
pointerEvents="box-none"
useNativeDriver={useNativeDriver}
onOpenCallBack={() => {
Expand Down

0 comments on commit fce7094

Please sign in to comment.