Type alias PaginationProps

PaginationProps: {
    componentProps?: ViewProps;
    currentPage: number;
    onPageChange: ((page) => void);
    paginationText?: string;
    style?: StyleProp<ViewStyle>;
    totalPages: number;
}

Props for Pagination component

Type declaration

  • Optional componentProps?: ViewProps

    Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this.

  • currentPage: number

    Current page (1 - totalPages)

  • onPageChange: ((page) => void)
      • (page): void
      • Callback when page changes

        Parameters

        • page: number

        Returns void

  • Optional paginationText?: string

    Text to use for pagination wrapper (accessibility). Defaults to ENGLISH "Pagination"

  • Optional style?: StyleProp<ViewStyle>

    Style to set on the item

  • totalPages: number

    Number of pages

Generated using TypeDoc