import React from 'react'; import { StyleProp, ViewStyle, TextStyle, ListRenderItem, FlatListProps } from 'react-native'; import { DevInfo, TabBarArr, TabBarProps } from 'tuya-panel-kit'; export interface DeviceListPanelProps { dataSource?: Array; tabs: Array; panelStyle?: StyleProp; containerStyle?: StyleProp; tabBarStyle?: StyleProp; highestPosition?: number; initialPosition?: number; autoShrinkDistance?: number; isShowIconMore?: boolean; initialTab?: string; children?: React.ReactNode; panelChildren?: React.ReactNode; panelChildrenHeight?: number; ListEmptyComponent?: React.ComponentType | React.ReactElement | null; swipeable?: boolean; isShowPullDown?: boolean; flatListProps?: FlatListProps; tabBarProps?: TabBarProps; onIconMorePress?: (devInfo: DevInfo) => void; onTabChange?: (key: string) => void; customRenderItem?: ListRenderItem; customRenderTabBar?: () => JSX.Element; customRenderList?: () => JSX.Element; customRenderPullDown?: () => JSX.Element; }