meliorence / react-native-snap-carousel

Swiper/carousel component for React Native featuring previews, multiple layouts, parallax images, performant handling of huge numbers of items, and more. Compatible with Android & iOS.
BSD 3-Clause "New" or "Revised" License
10.37k stars 2.29k forks source link

fix typescript issue #791

Open maxencehenneron opened 3 years ago

maxencehenneron commented 3 years ago

Platforms affected

None

What does this PR do?

Here's the issues was having on the 4.0.0-beta.x branch. image I fixed it by giving more context to the function.

What testing has been done on this change?

Tested in my own app. Not much changed, just type definitions.

Tested features checklist