반응형 LayoutAnimation1 다이어리 앱을 만들면서 연습해보자.- LayoutAnimation 종류 / 사용방법 LayoutAnimation state가 변경되면, 그 후에 layout에 animation을 실행하고 싶어! 라고 할때 사용한다. 사용법 import { LayoutAnimation} from "react-native"; LayoutAnimation.configureNext(LayoutAnimation.Presets.spring); 다이어리 앱에 적용예: Home.js useEffect(() => { // Home 컴포넌트가 mount 될때 조회해서 state에 등록한다. const feelings = realm.objects("Feeling"); // feelings 가 수정/삭제/생성 등의 이벤트가 있을 때 감지하기 위한 리스너를 등록한다. feelings.addListener((feelings, .. 2023. 2. 18. 이전 1 다음 반응형