0

I'm currently creating an app using react-native for a capstone project, but have run into a small issue when I try using the snap carousel. It seems that all text does not appear under the carousel for some reason.

const YourApp = () => {
  return (
    <ScrollView>
      <View style={styles.container}>
        <View style={{width: '100%', height: 200, backgroundColor: '#c89686',}}>
          <Text style={styles.txt}>SPARTAN</Text>
          <Text style={styles.txt1}>FITNESS</Text>
        </View>
        <Text style={styles.txt2}>New Arrivals</Text>
        <CarouselCards></CarouselCards>
        ***<Text style={{}}>Swipe to View</Text>***
      </View>
    </ScrollView>
  );
}

I tried styling, adding margin-top to see if it was for some reason inside of the carousel, but nothing related to styling worked, it instead just added whitespace on the app. Tried adding another container for the text but it did the same thing as the styling, and didn't display.

0 Answers0