import * as React from 'react'; declare type Props = { /** * Function to execute on selection change. */ onAccordionPress?: (expandedId: string | number) => void; /** * Id of the currently expanded list accordion */ expandedId?: string | number; /** * React elements containing list accordions */ children: React.ReactNode; }; export declare type ListAccordionGroupContextType = { expandedId: string | number | undefined; onAccordionPress: (expandedId: string | number) => void; } | null; export declare const ListAccordionGroupContext: React.Context; /** * List.AccordionGroup allows to control a group of List Accordions. `id` prop for List.Accordion is required in order for group to work. * List.AccordionGroup can be a controlled or uncontrolled component. The example shows the uncontrolled version. * At most one Accordion can be expanded at a given time. * *
* *
* * ## Usage * ```js * import * as React from 'react'; * import { View, Text } from 'react-native'; * import { List } from 'react-native-paper'; * * const MyComponent = () => ( * * * * * * * * * * List.Accordion can be wrapped because implementation uses React.Context. * * * * * * * ); * * export default MyComponent; *``` */ declare const ListAccordionGroup: { ({ expandedId: expandedIdProp, onAccordionPress, children, }: Props): JSX.Element; displayName: string; }; export default ListAccordionGroup;