import { ReactElement, RefAttributes, PropsWithoutRef, PropsWithChildren } from 'react'; import { ViewStyle, FlatList, FlatListProps, StyleProp } from 'react-native'; import createThemedComponent, { ThemeProps, ThemeStyle } from '../createThemedComponent'; export default createThemedComponent< FlatListProps, { style: ViewStyle; contentContainerStyle: ViewStyle; ListFooterComponentStyle: ViewStyle; columnWrapperStyle: ViewStyle; ListHeaderComponentStyle: ViewStyle; }, Pick, 'indicatorStyle'> >( FlatList, [ 'style', 'contentContainerStyle', 'ListFooterComponentStyle', 'columnWrapperStyle', 'ListHeaderComponentStyle' ], ['indicatorStyle'] ) as ( props: PropsWithChildren< PropsWithoutRef< Omit< FlatListProps, | 'indicatorStyle' | 'style' | 'contentContainerStyle' | 'ListFooterComponentStyle' | 'columnWrapperStyle' | 'ListHeaderComponentStyle' > & ThemeProps, 'indicatorStyle'>> & { [K in | 'style' | 'contentContainerStyle' | 'ListFooterComponentStyle' | 'columnWrapperStyle' | 'ListHeaderComponentStyle']?: StyleProp< ThemeStyle[K]> >; } > > & RefAttributes> ) => ReactElement | null;