-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event handlers do not work with custom buttons #255
Comments
the same issue in here |
@bamoha Use View component instead of Button, and style the View component accordingly const renderTexts = (val) => {
return (
<View>{val}</View>
)
}
<AppIntroSlider
data={slides}
renderItem={RenderItem}
onSkip={() => console.log("on Skip")}
onDone={() => console.log("on Done")}
renderSkipButton={() => renderTexts('Skip')}
renderDoneButton={() => renderTexts('Done')}
renderNextButton={() => renderTexts('Next')}
showSkipButton={true}
dotStyle={{ backgroundColor: customTheme["color-black"] }}
/> |
I think you forgot the Text element as we can't render text directly inside View |
Does the solution function correctly? And if not, which other libraries have you utilized in place of react-native-app-intro-slider? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a nice project, but whenever I place a custom render button for skip, next and done, the event to skip or go to the next slide stops working.
The text was updated successfully, but these errors were encountered: