@@ -247,13 +247,13 @@ export default class AppIntro extends Component {
247
247
}
248
248
249
249
renderPagination = ( index , total , context ) => {
250
- const { activeDotColor, dotColor, rightTextColor } = this . props ;
250
+ const { dotStyles , activeDotColor, dotColor, rightTextColor } = this . props ;
251
251
const ActiveDot = (
252
252
< View
253
- style = { [ this . styles . activeDotStyle , { backgroundColor : activeDotColor } ] }
253
+ style = { [ this . styles . activeDotStyle , dotStyles , { backgroundColor : activeDotColor } ] }
254
254
/>
255
255
) ;
256
- const Dot = < View style = { [ this . styles . dotStyle , { backgroundColor : dotColor } ] } /> ;
256
+ const Dot = < View style = { [ this . styles . dotStyle , dotStyles , { backgroundColor : dotColor } ] } /> ;
257
257
let dots = [ ] ;
258
258
for ( let i = 0 ; i < total ; i ++ ) {
259
259
dots . push ( i === index ?
@@ -278,9 +278,10 @@ export default class AppIntro extends Component {
278
278
isSkipBtnShow = true ;
279
279
}
280
280
let controllBts ;
281
+ const { paginationStyles} = this . props ;
281
282
if ( Platform . OS === 'ios' ) {
282
283
controllBts = (
283
- < View style = { this . styles . paginationContainer } >
284
+ < View style = { [ this . styles . paginationContainer , paginationStyles ] } >
284
285
{ this . renderSkipButton ( ) }
285
286
< View style = { this . styles . dotContainer } >
286
287
{ dots }
@@ -290,7 +291,7 @@ export default class AppIntro extends Component {
290
291
) ;
291
292
} else {
292
293
controllBts = (
293
- < View style = { this . styles . paginationContainer } >
294
+ < View style = { [ this . styles . paginationContainer , paginationStyles ] } >
294
295
< View style = { [ this . styles . btnContainer , {
295
296
paddingBottom : 5 ,
296
297
opacity : isSkipBtnShow ? 1 : 0 ,
@@ -459,7 +460,9 @@ AppIntro.propTypes = {
459
460
customStyles : PropTypes . object ,
460
461
defaultIndex : PropTypes . number ,
461
462
showSkipButton : PropTypes . bool ,
462
- showDoneButton : PropTypes . bool
463
+ showDoneButton : PropTypes . bool ,
464
+ paginationStyles : PropTypes . object ,
465
+ dotStyles : PropTypes . object
463
466
} ;
464
467
465
468
AppIntro . defaultProps = {
@@ -477,5 +480,7 @@ AppIntro.defaultProps = {
477
480
nextBtnLabel : '›' ,
478
481
defaultIndex : 0 ,
479
482
showSkipButton : true ,
480
- showDoneButton : true
483
+ showDoneButton : true ,
484
+ paginationStyles : { } ,
485
+ dotStyles : { }
481
486
} ;
0 commit comments