Create constraints to further clarify purpose of this library
ParallaxSwiperPage component replaces arbitrary React elements as children
BackgroundComponent and ForegroundComponent props define UI behavior
Allow any UI to be consumed by ‘pages’ and be agnostic to their props
e.g. use react-native-video and let user handle state/props on their end
Normalize the property that handles parallax and make it relative to ParallaxSwiperPage
BackgroundComponent stays still with speed={0} and moves at scroll rate with speed={1}
Amongst these bigger changes are examples containing use cases regarding this UI pattern and smaller ones like fixing wrongful peer-dependency warnings. Also included are some changes to API endpoints to reduce un-helpful redundancy in nomenclature.
This PR aims to do three major things:
ParallaxSwiperPage
component replaces arbitrary React elements as childrenBackgroundComponent
andForegroundComponent
props define UI behaviorParallaxSwiperPage
BackgroundComponent
stays still withspeed={0}
and moves at scroll rate withspeed={1}
Amongst these bigger changes are examples containing use cases regarding this UI pattern and smaller ones like fixing wrongful peer-dependency warnings. Also included are some changes to API endpoints to reduce un-helpful redundancy in nomenclature.