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