Skip to content

Commit 8c655b0

Browse files
committed
fix: improve state usage
1 parent e8c5180 commit 8c655b0

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

package/src/components/ImageGallery/hooks/useImageGalleryGestures.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -105,20 +105,6 @@ export const useImageGalleryGestures = ({
105105
const focalX = useSharedValue(0);
106106
const focalY = useSharedValue(0);
107107

108-
/**
109-
* if a specific image index > 0 has been passed in
110-
* while creating the hook, set the value of the index
111-
* reference to its value.
112-
*
113-
* This makes it possible to seelct an image in the list,
114-
* and scroll/pan as normal. Prior to this,
115-
* it was always assumed that one started at index 0 in the
116-
* gallery.
117-
* */
118-
// useEffect(() => {
119-
// setIndex(selectedIndex);
120-
// }, [selectedIndex]);
121-
122108
/**
123109
* Shared values for movement
124110
*/

0 commit comments

Comments
 (0)