Commit 28368057 authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

[FIX] se arreglo un error que mostraba un fondo incorrecto al cambiar de slide

parent 4dfec4e9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ export const useAnimatedSelectedIndex = (startMilliseconds: number = 500, endMil

  const onIndexChange = useCallback((index: number) => {
    if (index !== selectedState.current) {
      setTimeout(() => {}, 100);
      if (index == selectedState.current) return;
      console.log("Index changed to: ", index);
      selectedState.current = index;
      Animated.timing(backgroundImageAnimation, {