Skip to content

Commit

Permalink
fix: ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
lareinayanyu committed Dec 19, 2024
1 parent 016b974 commit 2edbe94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface IntersectionObserver {
}

export interface ScrollViewContextValue {
gestureRef: React.RefObject<any>
gestureRef: React.RefObject<any> | null
}

export const MovableAreaContext = createContext({ width: 0, height: 0 })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ export function pickStyle (styleObj: Record<string, any> = {}, pickedKeys: Array
}

export function useGesture ({ onTouchStart, onTouchEnd }: { onTouchStart: () => void, onTouchEnd: () => void }) {
const gestureRef: React.RefObject<any> = useContext(ScrollViewContext).gestureRef
const gestureRef: React.RefObject<any> | null = useContext(ScrollViewContext).gestureRef

const gesturePan = Gesture.Pan()

Expand Down

0 comments on commit 2edbe94

Please sign in to comment.