Open bamoha opened 2 years ago
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"] }}
/>
@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?
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.