11import * as React from 'react' ;
22import {
3- ColorValue ,
43 I18nManager ,
54 StyleProp ,
65 StyleSheet ,
@@ -57,14 +56,6 @@ type PaginationDropdownProps = {
5756 * The function to set the number of rows per page.
5857 */
5958 onItemsPerPageChange ?: ( numberOfItemsPerPage : number ) => void ;
60- /**
61- * Color of the dropdown item ripple effect.
62- */
63- dropdownItemRippleColor ?: ColorValue ;
64- /**
65- * Color of the select page dropdown ripple effect.
66- */
67- selectPageDropdownRippleColor ?: ColorValue ;
6859 /**
6960 * @optional
7061 */
@@ -88,10 +79,6 @@ type PaginationControlsProps = {
8879 * Whether to show fast forward and fast rewind buttons in pagination. False by default.
8980 */
9081 showFastPaginationControls ?: boolean ;
91- /**
92- * Color of the pagination control ripple effect.
93- */
94- paginationControlRippleColor ?: ColorValue ;
9582 /**
9683 * @optional
9784 */
@@ -104,7 +91,6 @@ const PaginationControls = ({
10491 onPageChange,
10592 showFastPaginationControls,
10693 theme : themeOverrides ,
107- paginationControlRippleColor,
10894} : PaginationControlsProps ) => {
10995 const theme = useInternalTheme ( themeOverrides ) ;
11096
@@ -123,7 +109,6 @@ const PaginationControls = ({
123109 />
124110 ) }
125111 iconColor = { textColor }
126- rippleColor = { paginationControlRippleColor }
127112 disabled = { page === 0 }
128113 onPress = { ( ) => onPageChange ( 0 ) }
129114 accessibilityLabel = "page-first"
@@ -140,7 +125,6 @@ const PaginationControls = ({
140125 />
141126 ) }
142127 iconColor = { textColor }
143- rippleColor = { paginationControlRippleColor }
144128 disabled = { page === 0 }
145129 onPress = { ( ) => onPageChange ( page - 1 ) }
146130 accessibilityLabel = "chevron-left"
@@ -156,7 +140,6 @@ const PaginationControls = ({
156140 />
157141 ) }
158142 iconColor = { textColor }
159- rippleColor = { paginationControlRippleColor }
160143 disabled = { numberOfPages === 0 || page === numberOfPages - 1 }
161144 onPress = { ( ) => onPageChange ( page + 1 ) }
162145 accessibilityLabel = "chevron-right"
@@ -173,7 +156,6 @@ const PaginationControls = ({
173156 />
174157 ) }
175158 iconColor = { textColor }
176- rippleColor = { paginationControlRippleColor }
177159 disabled = { numberOfPages === 0 || page === numberOfPages - 1 }
178160 onPress = { ( ) => onPageChange ( numberOfPages - 1 ) }
179161 accessibilityLabel = "page-last"
@@ -189,8 +171,6 @@ const PaginationDropdown = ({
189171 numberOfItemsPerPage,
190172 onItemsPerPageChange,
191173 theme : themeOverrides ,
192- selectPageDropdownRippleColor,
193- dropdownItemRippleColor,
194174} : PaginationDropdownProps ) => {
195175 const theme = useInternalTheme ( themeOverrides ) ;
196176 const { colors } = theme ;
@@ -209,7 +189,6 @@ const PaginationDropdown = ({
209189 icon = "menu-down"
210190 contentStyle = { styles . contentStyle }
211191 theme = { theme }
212- rippleColor = { selectPageDropdownRippleColor }
213192 >
214193 { `${ numberOfItemsPerPage } ` }
215194 </ Button >
@@ -227,7 +206,6 @@ const PaginationDropdown = ({
227206 onItemsPerPageChange ?.( option ) ;
228207 toggleSelect ( false ) ;
229208 } }
230- rippleColor = { dropdownItemRippleColor }
231209 title = { option }
232210 theme = { theme }
233211 />
@@ -304,8 +282,6 @@ const DataTablePagination = ({
304282 onItemsPerPageChange,
305283 selectPageDropdownLabel,
306284 selectPageDropdownAccessibilityLabel,
307- selectPageDropdownRippleColor,
308- dropdownItemRippleColor,
309285 theme : themeOverrides ,
310286 ...rest
311287} : Props ) => {
@@ -339,8 +315,6 @@ const DataTablePagination = ({
339315 numberOfItemsPerPageList = { numberOfItemsPerPageList }
340316 numberOfItemsPerPage = { numberOfItemsPerPage }
341317 onItemsPerPageChange = { onItemsPerPageChange }
342- selectPageDropdownRippleColor = { selectPageDropdownRippleColor }
343- dropdownItemRippleColor = { dropdownItemRippleColor }
344318 theme = { theme }
345319 />
346320 </ View >
0 commit comments