Skip to content

Commit ad0e83e

Browse files
committed
fix onSkipBtnClick index
1 parent 194dc68 commit ad0e83e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Example/index.ios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
import React, { Component } from 'react';
88
import { AppRegistry, StyleSheet, Text, View, Alert, Image } from 'react-native';
9-
// import AppIntro from 'react-native-app-intro';
10-
import AppIntro from './AppIntro';
9+
import AppIntro from 'react-native-app-intro';
10+
// import AppIntro from './AppIntro';
1111

1212
const styles = StyleSheet.create({
1313
slide: {

components/SkipButton.android.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const SkipButton = ({
1919
}]}>
2020
<TouchableOpacity
2121
style={styles.full}
22-
onPress={isSkipBtnShow ? () => onSkipBtnClick(index) : null}>
22+
onPress={isSkipBtnShow ? () => onSkipBtnClick() : null}>
2323
<Text style={[styles.controllText, { color: leftTextColor }]}>
2424
{skipBtnLabel}
2525
</Text>
@@ -28,4 +28,4 @@ export const SkipButton = ({
2828
)
2929
}
3030

31-
export default SkipButton
31+
export default SkipButton

components/SkipButton.ios.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const SkipButton = ({
2525
>
2626
<TouchableOpacity
2727
style={styles.full}
28-
onPress={isSkipBtnShow ? () => onSkipBtnClick(index) : null}>
28+
onPress={isSkipBtnShow ? () => onSkipBtnClick() : null}>
2929
<Text style={[styles.controllText, { color: rightTextColor }]}>
3030
{skipBtnLabel}
3131
</Text>
@@ -34,4 +34,4 @@ export const SkipButton = ({
3434
)
3535
}
3636

37-
export default SkipButton
37+
export default SkipButton

0 commit comments

Comments
 (0)