fix: correct path aliases and type imports across codebase
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useRef } from "react";
|
||||
import { View, Text, Pressable, Animated, StyleSheet } from "react-native";
|
||||
import { PanGestureHandler, State, PanGestureHandlerGestureEvent } from "react-native-gesture-handler";
|
||||
import { PanGestureHandler, State, PanGestureHandlerGestureEvent, PanGestureHandlerStateChangeEvent } from "react-native-gesture-handler";
|
||||
|
||||
type SwipeableRowProps = {
|
||||
children: React.ReactNode;
|
||||
@@ -20,8 +20,8 @@ export function SwipeableRow({ children, onDelete, deleteLabel = "Delete" }: Swi
|
||||
translateX.setValue(clamped);
|
||||
};
|
||||
|
||||
const onHandlerStateChange = (event: PanGestureHandlerGestureEvent) => {
|
||||
if (event.oldState === State.ACTIVE) {
|
||||
const onHandlerStateChange = (event: PanGestureHandlerStateChangeEvent) => {
|
||||
if (event.nativeEvent.oldState === State.ACTIVE) {
|
||||
const { translationX } = event.nativeEvent;
|
||||
const final = Math.max(MAX_LEFT, Math.min(0, offset.current + translationX));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user