Skip to content

Commit 6039628

Browse files
authored
Merge pull request #27 from joshuapinter/patch-1
Use leftTextColor prop when provided.
2 parents 0d7b857 + 49c161c commit 6039628

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AppIntro.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export default class AppIntro extends Component {
189189
}
190190

191191
renderPagination = (index, total, context) => {
192-
const { activeDotColor, dotColor, rightTextColor } = this.props;
192+
const { activeDotColor, dotColor, rightTextColor, leftTextColor } = this.props;
193193
const ActiveDot = (
194194
<View
195195
style={[this.styles.activeDotStyle, { backgroundColor: activeDotColor }]}
@@ -237,7 +237,7 @@ export default class AppIntro extends Component {
237237
style={this.styles.full}
238238
onPress={isSkipBtnShow ? () => this.props.onSkipBtnClick(index) : null}
239239
>
240-
<Text style={[this.styles.controllText, { color: rightTextColor }]}>{this.props.skipBtnLabel}</Text>
240+
<Text style={[this.styles.controllText, { color: leftTextColor }]}>{this.props.skipBtnLabel}</Text>
241241
</TouchableOpacity>
242242
</Animated.View>
243243
<View style={this.styles.dotContainer}>
@@ -284,7 +284,7 @@ export default class AppIntro extends Component {
284284
style={this.styles.full}
285285
onPress={isSkipBtnShow ? () => this.props.onSkipBtnClick(index) : null}
286286
>
287-
<Text style={[this.styles.controllText, { color: rightTextColor }]}>{this.props.skipBtnLabel}</Text>
287+
<Text style={[this.styles.controllText, { color: leftTextColor }]}>{this.props.skipBtnLabel}</Text>
288288
</TouchableOpacity>
289289
</View>
290290
<View style={this.styles.dotContainer}>

0 commit comments

Comments
 (0)