@janiscommerce/ui-native
Version:
components library for Janis app
20 lines (19 loc) • 576 B
TypeScript
import React from 'react';
import { ViewStyle } from 'react-native';
interface CollapsibleProps<HeaderProps = {}, ContentProps = {}> {
header: React.ComponentType<HeaderProps>;
content: React.ComponentType<ContentProps & {
index: number;
}>;
data?: Record<string, any>[];
pressableComponent?: React.ComponentType;
duration?: number;
onPressCallback?: null | (() => void);
wrapperStyle?: ViewStyle;
}
declare const Collapsible: React.FC<CollapsibleProps<{
isOpen: boolean;
}, {
isOpen?: boolean;
}>>;
export default Collapsible;