Browse Source

rename slider

pull/8/head
Tim Glasgow 3 years ago
parent
commit
0aee69d9aa
  1. 4
      squarenotsquare/src/components/Slider.js

4
squarenotsquare/src/components/Slider.js

@ -2,7 +2,7 @@ import React from "react";
import { Animated, Easing} from "react-native"; import { Animated, Easing} from "react-native";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
function LeftToRight(props){ function Slider(props){
const [xPosition, setXPosition] = useState(new Animated.Value(props.origin)); const [xPosition, setXPosition] = useState(new Animated.Value(props.origin));
useEffect(() => { useEffect(() => {
@ -24,4 +24,4 @@ function LeftToRight(props){
) )
} }
export default LeftToRight; export default Slider;
Loading…
Cancel
Save