npm i @types/styled-componentsnpm i @types/styled-components-react-native노가다로 animated 하기라이버러리 없이 animated 작업할려면 이렇게나 힘듦.
import { Animated, Easing } from 'react-native'const Box = styled.View background-color: tomato; width: 200px; height: 200px;const AnimatedBox = An
Box가 화면을 계속 도는것.해설은 숙제!!
~
설명: 터치가 끝났을 경우, 위치가 끝난 위치에 머물러 있게 값을 설정.onPanResponderGrant : setOffse을 통해 터치가 끝난 마지막 좌표를 기억해줌.onPanResponderRelease : flattenOffest을 통해 setOffset의 좌표
손으로 혹은 버튼으로 카드 무한으로 좌 혹은 우로 날리기