react-native-snap-carousel
react-native-snap-carousel copied to clipboard
added deprecated-react-native-prop-types to handle ViewPropTypes
Platforms affected
Android and iOS
What does this PR do?
ViewPropTypes
has been removed from react-native so if still using, we need to use deprecated-react-native-prop-types
to access the mentioned types. I added the same package to handle the type safety.
What testing has been done on this change?
Manual testing, as I am using the same package in one of my projects.
Tested features checklist
- [x] Default setup (example)
- [x] Carousels with and without momentum enabled (prop
enableMomentum
) - [x] Vertical carousels (prop
vertical
) - [x] Slide alignment (prop
activeSlideAlignment
) - [x] Autoplay (prop
autoplay
) - [x] Loop mode (prop
loop
) - [x]
ScrollView
/FlatList
carousels (propuseScrollView
) - [x] Callback methods
- [x]
ParallaxImage
component - [x]
Pagination
component - [x] Layouts and custom interpolations