diff --git a/squarenotsquare/src/components/Slider.js b/squarenotsquare/src/components/Slider.js index b0942b6..ff790ce 100644 --- a/squarenotsquare/src/components/Slider.js +++ b/squarenotsquare/src/components/Slider.js @@ -6,12 +6,15 @@ function LeftToRight(props){ const [xPosition, setXPosition] = useState(new Animated.Value(props.origin)); useEffect(() => { - Animated.timing(xPosition, { - toValue: 0, - easing: Easing.back(), - duration: props.duration, - useNativeDriver: true - }).start(); + Animated.sequence([ + Animated.delay(props.delay), + Animated.timing(xPosition, { + toValue: 0, + // easing: Easing.back(), + duration: props.duration, + useNativeDriver: true + }) + ]).start(); }, []); diff --git a/squarenotsquare/src/screens/Home.js b/squarenotsquare/src/screens/Home.js index 8333bb6..1a0c55a 100644 --- a/squarenotsquare/src/screens/Home.js +++ b/squarenotsquare/src/screens/Home.js @@ -36,14 +36,14 @@ function Home(props){ - + Start - + High Scores