-
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
Android vertical swiper #643
base: master
Are you sure you want to change the base?
Conversation
Using the code at the bottom as a test, there seems to be a number of problems (some not introduced here, but revealed as a result of the fix):
Note:An alternative to this code, ultimately, is to use ScrollView for both Android and ios. I realize that ScrollView is not complete for android yet (snap doesn't work for vertical sliding). This fix can work in the interim until the ScrollView for Android fix is complete (I see that there is activity toward getting this fixed within the next month). Opinion:I would move forward with this pull request once the first problem above is addressed and fixe problems 2 and 3 in separate pull requests. The code used for testing:
|
Related to #477 too. |
I (shamefully) pasted the example, should have come up with a minimalist one. |
Other issues:
|
I agree with you that this is a vast improvement over not having anything at all! |
I have found that commenting out the ios specific statements in the code does produce a working application, but with one problem: On Android, the vertical scroll doesn't snap to page breaks. Everything else seems to work. I noticed that the fix for ScrollView snap on Android is almost merged into the main branch of react-native. Perhaps there is a workaround for the snap problem on Android in the interim? |
Hi, I have tested it on my project and got an issue with loadMinimal and loadMinimalSize API |
@alonle I believe I have a solution for the loadMinimal issue: #358 (comment) |
@tudorilisoi I tried your PR with my own project, and I found it will crash in below code:
with
because it is the same with ios when you use VertViewPager, they all have scrollTo method. |
Any progress on this? |
It's working now. Use this. https://www.npmjs.com/package/@nart/react-native-swiper Don't forget to add prop |
@smitthakkar1 using https://www.npmjs.com/package/@nart/react-native-swiper I found myself having the problem |
@EladZucker it seems the problem with styles of scrollview. try to disable the styles and try again |
@smitthakkar1 got it ! its working now ! thanks ! when do you think it will get pushed to this repo ? |
@EladZucker can you please paste your code here ? |
I try to do something similar to this on android. If I copy the code all is ok but if I want the inverse (scroll verticaly and after to scroll horizontaly) that cause a problem. My code look like this :
The problem is when I scroll verticaly there is no content in my swiper horizontal, and I don't understand why. Using https://www.npmjs.com/package/@nart/react-native-swiper. |
Installed https://www.npmjs.com/package/@nart/react-native-swiper, set |
Im having the same problem with "react": "16.3.1", |
Same issue. The swiper shows up horizontally on Android invariable to the horizontal={false} property. |
Is there any alternative that works for both android and ios? |
For those who are still struggling, please check the Files Changed up in the pull request. You can also go to https://www.npmjs.com/package/react-native-vertical-view-pager |
@smitthakkar1 I tried your package, however the |
+1 |
1 similar comment
+1 |
+1 |
Is it a bugfix ?
Is it a new feature ?
No
It's a bug fix for nested vertical swiper not being displayed on Android (with
horizontal={false}
).Describe what you've done:
I included a vertical view pager for Android
How to test it ?