From 7963c4a14fda6b5af13c577275b7062766bd8ce3 Mon Sep 17 00:00:00 2001 From: tanvir002700 Date: Mon, 23 Oct 2017 19:52:24 +0600 Subject: [PATCH 1/2] add indicator container style props --- src/components/pages/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/pages/index.js b/src/components/pages/index.js index e3b48d3..7b1cae6 100644 --- a/src/components/pages/index.js +++ b/src/components/pages/index.js @@ -32,6 +32,7 @@ export default class Pages extends PureComponent { style: ViewPropTypes.style, containerStyle: ViewPropTypes.style, + indicatorContainerStyle: ViewPropTypes.style, indicatorColor: PropTypes.string, indicatorOpacity: PropTypes.number, indicatorPosition: PropTypes.oneOf([ @@ -213,7 +214,7 @@ export default class Pages extends PureComponent { } renderPager(pager) { - let { renderPager, horizontal, rtl } = this.props; + let { renderPager, horizontal, rtl, indicatorContainerStyle } = this.props; if ('function' === typeof renderPager) { return renderPager({ horizontal, rtl, ...pager }); @@ -230,7 +231,7 @@ export default class Pages extends PureComponent { null; return ( - + ); From ab74e174ffeac40d604ae2e33ab1cf237f206c4d Mon Sep 17 00:00:00 2001 From: tanvir002700 Date: Mon, 23 Oct 2017 20:40:47 +0600 Subject: [PATCH 2/2] update readme --- readme.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/readme.md b/readme.md index 437457f..89843e2 100644 --- a/readme.md +++ b/readme.md @@ -54,18 +54,19 @@ class Example extends Component { ## Properties - name | description | type | default -:----------------- |:-------------------------------------- | --------:|:------------------ - horizontal | Scroll direction | Boolean | true - rtl | RTL mode for horizontal scroll | Boolean | false - startPage | Start page | Number | 0 - indicatorColor | Page indicator color | String | rgb(255, 255, 255) - indicatorOpacity | Page indicator opacity (inactive dots) | Number | 0.30 - indicatorPosition | Page indicator position | String | bottom - containerStyle | Style for container view | Object | - - progress | Animated.Value updated with progress | Object | - - onScrollEnd | Scroll end callback | Function | - - renderPager | Render pager callback | Function | - + name | description | type | default +:-----------------------|:-------------------------------------- | --------:|:------------------ + horizontal | Scroll direction | Boolean | true + rtl | RTL mode for horizontal scroll | Boolean | false + startPage | Start page | Number | 0 + indicatorColor | Page indicator color | String | rgb(255, 255, 255) + indicatorOpacity | Page indicator opacity (inactive dots) | Number | 0.30 + indicatorPosition | Page indicator position | String | bottom + indicatorContainerStyle| Indicator container style | Object | + containerStyle | Style for container view | Object | - + progress | Animated.Value updated with progress | Object | - + onScrollEnd | Scroll end callback | Function | - + renderPager | Render pager callback | Function | - Possible values for `indicatorPosition` are `none`, `top`, `right`, `bottom` and `left`