react-native-timed-slideshow icon indicating copy to clipboard operation
react-native-timed-slideshow copied to clipboard

Slideshow in a scrollview ?

Open WeeCoopTech opened this issue 5 years ago • 1 comments

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>

WeeCoopTech avatar Jun 19 '20 16:06 WeeCoopTech

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>

WeeCoopTech avatar Jul 17 '20 08:07 WeeCoopTech