File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/components/pageControl Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ export interface PageControlProps {
74
74
* The space between the siblings page indicators
75
75
*/
76
76
spacing ?: number ;
77
+ /**
78
+ * Used to identify the pageControl in tests
79
+ */
80
+ testID ?: string ;
77
81
}
78
82
79
83
interface State {
@@ -221,10 +225,10 @@ class PageControl extends PureComponent<PageControlProps, State> {
221
225
}
222
226
223
227
render ( ) {
224
- const { containerStyle} = this . props ;
228
+ const { containerStyle, testID } = this . props ;
225
229
226
230
return (
227
- < View style = { [ styles . container , containerStyle ] } inaccessible >
231
+ < View style = { [ styles . container , containerStyle ] } inaccessible testID = { testID } >
228
232
{ PageControl . showLimitedVersion ( this . props ) ? this . renderDifferentSizeIndicators ( ) : this . renderSameSizeIndicators ( ) }
229
233
</ View >
230
234
) ;
You can’t perform that action at this time.
0 commit comments