Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- materialicons
- Next.js
- 리액트네이티브아이콘
- 타입스크립트
- array
- javascript
- 스크롤이벤트
- generic
- react
- npm에러
- reactnative error
- extends
- reactnative
- 안드로이드빌드에러
- Spring
- app.post
- 이진탐색
- forwardref type
- set
- app:compiledebugkotlin
- async
- interface
- 배열중복요소제거
- map
- TS
- Filter
- 상속
- 슬라이딩윈도우
- mainapplication.kt
- err_connection_refused
Archives
- Today
- Total
목록animatedFlatList (1)
rhanziy
React Native - useAnimatedRef scrollToOffset 사용하기(타입스크립트)
그냥 flatList ref는 보통 이렇게 사용했을거다.ref = useRef(null);ref.current?.scrollToOffset({offset: 0, animated: true}) 그런데 useAnimatedRef를 쓰면 ref.current에 scrollToOffset이 없다고 타입에러가 뜰것임. const ref = useAnimatedRef>(); ref.current?.scrollToOffset({offset: 0, animated: true}); 원래 쓰던대로 쓰는방법은 바로~ react-native-reanimated.d.ts 파일에 가서 수정해주면댐.export interface FlatList extends ReactNativeView {}-> ..
React Native
2024. 3. 19. 11:08