React-native-snap-carousel: Snap Carousel not working suddenly on Android

Created on 21 Aug 2017  路  11Comments  路  Source: meliorence/react-native-snap-carousel

I don't know what just happened
It was working for 2 days then suddenly stopped working yesterday
I can't drag even the 1st slider with mouse, I can only use keyboards left & right to move them & they are only moving halfways
Its working pretty well in iOS simulator

Most helpful comment

Thanks for the love ;-)

I'm going to release 3.0.0 pretty soon. Note that you will no longer need to detect the end of the ScrollView since FlatList has a onEndReached prop...

All 11 comments

Hi @deadcoder0904,

From your description, I don't think it has anything to do with the plugin. You might want to check #109 for a similar issue (on iOS though) that has been fixed after restarting the computer...

Naah, been trying to figure the issue from 2 days so I restarted it multiple times...I thought u might know the issue...still its not working...Thanks anyways....I'll post the answer as soon as I'm done & Idk but its the issue with the plugin or react-native or plugin + react-native + android

I honestly don't see how the plugin could be the root of your issue, but I might have overlooked something.

My guess is that it has to do with React Native's ScrollView implementation. Still, would you mind trying with the flatlist branch?

I will definitely use flatlist branch

I honestly don't know how the issue arose bcz its working smoothly in iOS Simulator & was working on Android Emulator & Genymotion but now its not even responding to the PanResponder API, i.e, whenever I click & slide there is no response in Android the Slides just go inside & if I set autoplay={true} it works on Android but whenever I click it goes inside ,i.e, it scales down

I think the issue might be with 2 libraries not working together well

I am using react-native-infinite-scroll & inside of that this package is used like this

<InfiniteScrollView>
     <Carousel>
     </Carousel>
</InfiniteScrollView>

I think you are right about the ScrollView implementation
Hopefully will get it done by night
I'll post the results later
Thanks again 馃憤

Confirming it works well standalone without using react-native-infinite-scroll

Thanks for letting me know.

Unfortunately, there are a lot of issues with nested ScrollViews, so that's no surprise the two plugins aren't working well together.

Will FlatList inside ScrollView do the job ?

Well that sucks as I need Nested Scroll Views on Android
I tried everything but nothing is helping out
I'm gonna post now on StackOverflow 馃槀

I am so stupiddd
Sorry for all the trouble
I didn't needed Nested Scrollviews, I just needed Horizontal Infinite Carousel which fetches data when the right end is reached
I used onScroll function on this package & did this to detect horizontal scrollview & it works on Android & iOS smoothly

Thank you for everything 鉂わ笍
This package is awesome 馃槏 & plz release FlatList bcz my horizontal carousel is too damn big 馃槀

Thanks for the love ;-)

I'm going to release 3.0.0 pretty soon. Note that you will no longer need to detect the end of the ScrollView since FlatList has a onEndReached prop...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

radiosilence picture radiosilence  路  4Comments

KarlosQ picture KarlosQ  路  4Comments

codejet picture codejet  路  5Comments

NikitaNeganov picture NikitaNeganov  路  3Comments

sujitpk-perennial picture sujitpk-perennial  路  3Comments