-
Notifications
You must be signed in to change notification settings - Fork 714
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] Carousel loop doesn't behave correctly #2778
Comments
Hello all, Any updates regarding this? or any work-around? As we're preparing to go to production |
Hi, this was a bug when using android in rtl. It will be fixed in the next release. |
Thank you @nitzanwix, let me know if I can help with anything |
@nitzanwix I just managed to update to the latest version, and while the original issue is solved on android, I'm now observing the same issue on iOS. And as a side-effect to the fix, now text inside RTL carousel is mirrored: |
Hi, Thanks you're response. I see the inverted text bug. Can you elaborate on what you're now experiencing on ios? I don't see any jumps on my end. |
I observed the same behavior as in the original ticket, only this time was on [email protected]. For the time being I reverted to version [email protected] as I need to release to production.. I will do further tests after the release, and probably during the weekend and post the results here. |
Hey @nitzanwix, I can confirm I'm experiencing the same behaviour as the original ticket on iOS Environment
On android, in addition to text being mirrored, I can see the the carousel direction is also reversed on RTL.. Let me know if I can provide any more details |
Thanks for the reply. Could you show me how you use the carousel? (Code). Do you use autoplayInterval by any chance? |
Yes, I am. I'm also forcing RTL through native code if that helps. here is my implementation:
MainApplication.kt (previously MainApplication.java):
AppDelegate.mm:
|
Does this still occur with the new release? If so, could you attach a recording of it by any chance? |
Hey @nitzanwix, thanks for your efforts, On android, autoplay and loop are working as expected. However, the initial starting position is set to the last index of the carousel. (I tried settings the initialPage prop to 0, but it doesn't work unless it's through a hot-reload) On iOS the only issue is that initial issue of this bug report, which is the jumping between indexes. See attached: (left is iOS, right is Android) |
@nitzanwix any updates? |
This issue still exists on the Android platform, currently using React Native version: 0.73.0 and React Native UI Lib version: 7.21.2 |
also experiencing strange carousel behaviour |
Description
Auto play(loop) carousel on android jumps through indexes randomly and at most shows only 2-3 items, for example in an array of 18 items, it will only show indexes 0,1 and then jump to 17.
Expected behavior
Carousel should loop through all items as defined by items rendered
Actual behavior
Carousel jumps through items at random and at most shows only 2-3 items
Code snippet
Environment
Affected platforms
The text was updated successfully, but these errors were encountered: