From 775ceae12b897b5c77e8433f481b33b94677b0c1 Mon Sep 17 00:00:00 2001 From: Mark Wen Date: Mon, 11 Mar 2019 11:03:28 -0400 Subject: [PATCH] Added pageStyle customization --- src/components/pages/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/pages/index.js b/src/components/pages/index.js index 864a63a..f14b449 100644 --- a/src/components/pages/index.js +++ b/src/components/pages/index.js @@ -194,11 +194,11 @@ export default class Pages extends PureComponent { renderPage(page, index) { let { width, height, progress } = this.state; - let { children, horizontal, rtl } = this.props; + let { children, pageStyle, horizontal, rtl } = this.props; let pages = Children.count(children); - let pageStyle = (horizontal && rtl)? + let horizontalRtlStyle = (horizontal && rtl)? styles.rtl: null; @@ -206,7 +206,7 @@ export default class Pages extends PureComponent { progress = Animated.add(progress, -index); return ( - + {React.cloneElement(page, { index, pages, progress })} );