Guest User

Untitled

a guest
Jun 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. <Swiper
  2. showsButtons={false}
  3. loop={false}
  4. showsPagination={true}
  5. >
  6.  
  7. <ParallaxScrollView
  8. backgroundColor="transparent"
  9. contentBackgroundColor="#fff"
  10. parallaxHeaderHeight={250}
  11. renderBackground={() => (
  12. <ImageBackground
  13. source={require('../assets/images/image1.png')}
  14. style={{width: '100%', height: 250}}
  15. />
  16. )}
  17. renderForeground={() => (
  18. <View style={{flex: 1,alignItems: 'center', justifyContent: 'flex-end' }}>
  19. <Text>Hello world</Text>
  20. </View>
  21. )}>
  22.  
  23. <View style={{ height: 500 }}>
  24. <Text>Scroll me</Text>
  25. </View>
  26. </ParallaxScrollView>
  27. <ParallaxScrollView
  28. backgroundColor="transparent"
  29. contentBackgroundColor="#fff"
  30. parallaxHeaderHeight={250}
  31. renderBackground={() => (
  32. <ImageBackground
  33. source={require('../assets/images/image1.png')}
  34. style={{width: '100%', height: 250}}
  35. />
  36. )}
  37. renderForeground={() => (
  38. <View style={{flex: 1,alignItems: 'center', justifyContent: 'flex-end' }}>
  39. <Text>Hello world</Text>
  40. </View>
  41. )}>
  42.  
  43. <View style={{ height: 500 }}>
  44. <Text>Scroll me</Text>
  45. </View>
  46. </ParallaxScrollView>
  47. </Swiper>
Add Comment
Please, Sign In to add comment