-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just don't use this lib. #1364
Comments
If anyone has a better, and maintained suggestion, |
Hello @predrag-codetribe, have you seen react-native-pager-view? |
Yes, have seen it but after the migration... I migrated from leecade/react-native-swiper to https://github.com/gusgard/react-native-swiper-flatlist I also enocuntered some minor bugs with https://github.com/gusgard/react-native-swiper-flatlist, const [page, setPage] = useState(0)
const isLastPage = page === pack.length - 1
useEffect(function HackToKeepThePageUpToDate() {
// sometimes the onChangeIndex will not be called, thus the page is not updated
// this useEffect should address that, and the page should always be up to date
const interval = setInterval(() => {
if (!swiperRef.current) return
const index = swiperRef.current.getCurrentIndex()
setPage(index)
}, 1000)
return () => clearInterval(interval)
}, []) Certainty I am open to find the a swipper component that "just works". |
@predrag-codetribe Try this: |
The last release was in 2020.
In my experience, there was plenty of bugs, which all lead to this lib...
The text was updated successfully, but these errors were encountered: