I have a image carousel underneath a vertical ScrollView. I want to be able to slide some content on top of my image carousel. You can see in the current way I am implementing it there is an issue. I can no longer interact with my image carousel.
I would like to be able to scroll content on top of my carousel, but when there is not content on top, I would like to be able to use my carousel like normal. If possible, I would also like to be able for the scrolling to not bounce back to where it started, but to stay where it is left. If I scroll my content to the top of the screen, it needs to stay at the top of the screen.
I have attached some code as to how I am rendering the scrollView and the carousel but every line of code can be found on my snack example here. It reproduces my issue exactly.
export default function App() {
return (
<View style={{backgroundColor: '#d1cfcf', flex: 1}}>
<View style={{position: 'absolute',}}>
<Carousel/>
</View>
{/* beginning of white box below image*/}
<ScrollView style={{height: scale(500)}}>
<View style={styles.whiteBox}>
<View style={{flexDirection: 'row', top: scale(15), left: scale(20)}}></View>
{/* grey body in white text box*/}
<View style={styles.greyBody}></View>
</View>
{/* end of white box below image*/}
{/* grey body in white text box*/}
{/* beginning of description*/}
<View style={{bottom: scale(340),left: scale(25), position: "absolute", backgroundColor: 'red'}}>
<Text style={{fontSize: 15, color: 'black', fontWeight: 'bold'}}>
Description
</Text>
</View>
{/* beginning of View more text*/}
<View style={{position: 'absolute', top: scale(400), left: scale(25), height: scale(100), width: scale(300),}}>
<Text>
Lorem ipsum dolor sit amet, in quo dolorum ponderum, nam veri molestie constituto eu. Eum enim tantas sadipscing ne, ut omnes malorum nostrum cum. Errem populo qui ne, ea ipsum antiopam definitionem eos. Lorem ipsum dolor sit amet,
</Text>
</View>
</ScrollView>
{/* End of View more text*/}
{/* End of description*/}
</View>
);
}