Commit 6554f3ef authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Se hizo opcional la opción de regresar en un conjunto de slides

parent 34f5a85b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ import { FontAwesome, MaterialIcons } from "@expo/vector-icons";

interface SlideControlProps {
  onNext: () => void;
  onPrevious: () => void;
  onPrevious?: () => void;
  onFinish: () => void;
  isLast: boolean;
  isFirst: boolean;
@@ -19,7 +19,7 @@ export const SlideControl = ({
}: SlideControlProps) => {
  return (
    <View style={styles.container}>
      {isFirst ? <View/> : (
      {isFirst || !onPrevious ? <View/> :  (
        <TouchableOpacity style={styles.button} onPress={onPrevious}>
          <MaterialIcons
            name="keyboard-arrow-left"