import React, { Component, createRef } from 'react'; import { SectionList as RNSectionList, SectionListProps as RNSectionListProps, StyleProp, ViewStyle, View, } from 'react-native'; import Animated from 'react-native-reanimated'; import { NativeViewGestureHandler } from 'react-native-gesture-handler'; const AnimatedSectionList = Animated.createAnimatedComponent( RNSectionList ) as React.ComponentClass< Animated.AnimateProps>, any >; type Props = Omit< RNSectionListProps, | 'overScrollMode' | 'bounces' | 'decelerationRate' | 'onScrollBeginDrag' | 'scrollEventThrottle' | 'style' > & { style?: StyleProp>; height?: number; gestureRef?: any; }; export default class FlatList extends Component, {}> { state = { scrollContentHeight: 0, }; nativeGestureRef = createRef(); handleScrollSizeChange = (w: number, h: number) => { this.setState({ scrollContentHeight: h, }); }; render() { const { ...props } = this.props; return ( ); } }