Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Swiper
- showsButtons={false}
- loop={false}
- showsPagination={true}
- >
- <ParallaxScrollView
- backgroundColor="transparent"
- contentBackgroundColor="#fff"
- parallaxHeaderHeight={250}
- renderBackground={() => (
- <ImageBackground
- source={require('../assets/images/image1.png')}
- style={{width: '100%', height: 250}}
- />
- )}
- renderForeground={() => (
- <View style={{flex: 1,alignItems: 'center', justifyContent: 'flex-end' }}>
- <Text>Hello world</Text>
- </View>
- )}>
- <View style={{ height: 500 }}>
- <Text>Scroll me</Text>
- </View>
- </ParallaxScrollView>
- <ParallaxScrollView
- backgroundColor="transparent"
- contentBackgroundColor="#fff"
- parallaxHeaderHeight={250}
- renderBackground={() => (
- <ImageBackground
- source={require('../assets/images/image1.png')}
- style={{width: '100%', height: 250}}
- />
- )}
- renderForeground={() => (
- <View style={{flex: 1,alignItems: 'center', justifyContent: 'flex-end' }}>
- <Text>Hello world</Text>
- </View>
- )}>
- <View style={{ height: 500 }}>
- <Text>Scroll me</Text>
- </View>
- </ParallaxScrollView>
- </Swiper>
Add Comment
Please, Sign In to add comment