react-native-timed-slideshow
react-native-timed-slideshow copied to clipboard
Slideshow in a scrollview ?
The package is working fine but when I want to add text below and use it in scrollview, it disappear, I just have the text. How can I manage to use scrollview with this package ?
Thanks for any help.
my code :
<ScrollView>
<View style={styles.container}>
<TimedSlideshow
items={items}
showProgressBar={false}
titleStyle={styles.h1slide}
textStyle={styles.textfooter}
renderCloseIcon={() => {
styles.closeImgWrapperSlideshow,
styles.closeImgWrapperSlideshow,
null;
}}
/>
<Text style={styles.h3}>{i18n.t("Actus.text")}</Text>
</View>
</ScrollView>
Maybe it will help someone else, I found a solution this way :
<ScrollView vertical={true}>
<View style={{ height: height / 2 }}>
<TimedSlideshow
items={items}
showProgressBar={false}
titleStyle={styles.h1slide}
textStyle={styles.textfooter}
renderCloseIcon={() => {
styles.closeImgWrapperSlideshow,
styles.closeImgWrapperSlideshow,
null;
}}
/>
</View>
<Text style={styles.h3}>{i18n.t("Actus.text")}</Text>
</ScrollView>