Closed phillipcmittmann closed 3 years ago
Looks like I was doing it wrong, instead of:
arrayRefs.current = Array(2).fill(useRef(null));
It should be:
arrayRefs.current = Array(2).fill(0).map(i => useRef(null));
Isn't a bug, so will be closing the issue.
I can't figure out why zoomTo() only works for the last image of the list. I also tried mapping inside a scrollview and two images side by side.
I need a FlatList because in the end I will be rendering around 80 images, so it will impact the performance.
FlatList snippet:
EDIT: Two images snippet:
Obs: When keeping only the first one and changing its refs to any other index, it works