@@ -247,13 +247,13 @@ export default class AppIntro extends Component {
247247 }
248248
249249 renderPagination = ( index , total , context ) => {
250- const { activeDotColor, dotColor, rightTextColor } = this . props ;
250+ const { dotStyles , activeDotColor, dotColor, rightTextColor } = this . props ;
251251 const ActiveDot = (
252252 < View
253- style = { [ this . styles . activeDotStyle , { backgroundColor : activeDotColor } ] }
253+ style = { [ this . styles . activeDotStyle , dotStyles , { backgroundColor : activeDotColor } ] }
254254 />
255255 ) ;
256- const Dot = < View style = { [ this . styles . dotStyle , { backgroundColor : dotColor } ] } /> ;
256+ const Dot = < View style = { [ this . styles . dotStyle , dotStyles , { backgroundColor : dotColor } ] } /> ;
257257 let dots = [ ] ;
258258 for ( let i = 0 ; i < total ; i ++ ) {
259259 dots . push ( i === index ?
@@ -278,9 +278,10 @@ export default class AppIntro extends Component {
278278 isSkipBtnShow = true ;
279279 }
280280 let controllBts ;
281+ const { paginationStyles} = this . props ;
281282 if ( Platform . OS === 'ios' ) {
282283 controllBts = (
283- < View style = { this . styles . paginationContainer } >
284+ < View style = { [ this . styles . paginationContainer , paginationStyles ] } >
284285 { this . renderSkipButton ( ) }
285286 < View style = { this . styles . dotContainer } >
286287 { dots }
@@ -290,7 +291,7 @@ export default class AppIntro extends Component {
290291 ) ;
291292 } else {
292293 controllBts = (
293- < View style = { this . styles . paginationContainer } >
294+ < View style = { [ this . styles . paginationContainer , paginationStyles ] } >
294295 < View style = { [ this . styles . btnContainer , {
295296 paddingBottom : 5 ,
296297 opacity : isSkipBtnShow ? 1 : 0 ,
@@ -459,7 +460,9 @@ AppIntro.propTypes = {
459460 customStyles : PropTypes . object ,
460461 defaultIndex : PropTypes . number ,
461462 showSkipButton : PropTypes . bool ,
462- showDoneButton : PropTypes . bool
463+ showDoneButton : PropTypes . bool ,
464+ paginationStyles : PropTypes . object ,
465+ dotStyles : PropTypes . object
463466} ;
464467
465468AppIntro . defaultProps = {
@@ -477,5 +480,7 @@ AppIntro.defaultProps = {
477480 nextBtnLabel : '›' ,
478481 defaultIndex : 0 ,
479482 showSkipButton : true ,
480- showDoneButton : true
483+ showDoneButton : true ,
484+ paginationStyles : { } ,
485+ dotStyles : { }
481486} ;
0 commit comments