import { ReactNode } from 'react'; import { FlatListProperties, StyleProp, TextStyle, ViewStyle } from 'react-native'; /** * @author 田尘殇Sean(sean.snow@live.com) create at 2017/11/4 */ export interface Row { header?: ReactNode; body: ReactNode; footer?: ReactNode; rightArrow?: boolean; disabled?: boolean; style?: StyleProp; } export default interface Props extends FlatListProperties { header?: ReactNode; containerStyle?: StyleProp; disabled?: boolean; rightArrow?: ReactNode; fullSeparator?: boolean; separatorColor?: string; onItemPress?: (row: Row) => void; itemStyle?: StyleProp; headerTextStyle?: StyleProp; bodyTextStyle?: StyleProp; footerTextStyle?: StyleProp; }