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` 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 ( - + );