UNPKG

@prosperitainova/dumbo-react-native

Version:
29 lines 1.14 kB
import React from 'react'; import { StyleProp, ViewProps, ViewStyle } from 'react-native'; /** Props for Pagination component */ export type PaginationProps = { /** Number of pages */ totalPages: number; /** Current page (1 - totalPages) */ currentPage: number; /** Text to use for pagination wrapper (accessibility). Defaults to ENGLISH "Pagination" */ paginationText?: string; /** Callback when page changes */ onPageChange: (page: number) => void; /** Style to set on the item */ style?: StyleProp<ViewStyle>; /** Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this. */ componentProps?: ViewProps; }; /** * Pagination component for rendering a pagination menu * * {@link https://github.com/carbon-design-system/carbon-react-native/blob/main/example/src/Views/Pagination.tsx | Example code} */ export declare class Pagination extends React.Component<PaginationProps> { private get styles(); private changePage; private getPageItem; render(): React.ReactNode; } //# sourceMappingURL=index.d.ts.map