We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8c5180 commit 8c655b0Copy full SHA for 8c655b0
package/src/components/ImageGallery/hooks/useImageGalleryGestures.tsx
@@ -105,20 +105,6 @@ export const useImageGalleryGestures = ({
105
const focalX = useSharedValue(0);
106
const focalY = useSharedValue(0);
107
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
-
122
/**
123
* Shared values for movement
124
*/
0 commit comments