-
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
react-native-swiper in react-native-scrollable-tab-view can,t show #200
Comments
i found is not the problem of reac-native-scrollable-tab-view ,when i use react-native-swiper in listview renderHeader in android, the image can,t show |
Have similar issue, Image is not loading when used inside listview |
Have a same issue |
Have similar issue , i see the source code ,maybe use ViewPagerAndroid lead to this problem |
Have similar issue, did anyone solve this? |
Did you try to add prop 'removeClippedSubviews={false}' ?
removeClippedSubviews causes the same problem. |
I got the same problem when using this swiper and react-native-scrollable-tab-view. According to this which is a quite similar case, there is a problem with the use of ViewPagerAndroid. So I try to find ViewPagerAndroid in the source file and replace it with Scrollview. And now it works like charm alongside react-native-scrollable-tab-view. @leecade is there any particular reason in using ViewPagerAndroid? |
I found out that the workaround I mentioned above, messed up with the pagination. I find another solution to integrate this swiper and react-native-scrollable-tab-view without messing the source file. I make another component that only render the swiper, then mount it in the main component. |
I use the way mentioned by @habibridho , replace ViewPagerAndroid by the Scrollview. The swiper show, but when I swipe to right after fifth time, the swipe can't be sliced again, what the problem. |
I also encountered the same problem。 |
|
@liuya891012 yes, scrollview won't render sub component outside of viewport for improve performance |
Guys, I'm having this same issue. I'm using a swiper inside a main swiper. If I change something in the code and reload, it shows perfectly. Tried to set all ScrollView and Swiper removeClippedSubviews props to false, changed ViewPagerAndroid in source to ScrollView, but nothing works. If I change to loop false and swap, the next image loads too. Help? =( |
|
but nothing works +1 @ammichael |
where add?? |
yup, i have try this #311, and the problem solved.you can try this way selectively |
react-native-scrollable-tab-view cause the problem,i have used another component to solved it |
@Mah93 which lib do you use? |
find the index.js in node_modules\react-native-swiper\src. In the line 640 replace ViewPagerAndroid >> ScrollView. |
@chudaotrucnhan You're right! |
please add key={JSON.stringify(data)} , retry |
收到
|
where i put react-native-swiper into react-native-scrollable-tab-view, the image can,t show, my react-native version is 0.28, how can i solve this.
The text was updated successfully, but these errors were encountered: