-
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] lockScrollWhileSnapping={true} (Version 3.3.3) #176
Comments
Hi @kadoshms, If you've been watching the repo for a while, I guess you've already read this important note regarding Android. If not, make sure to do so ;-) Regarding your issue, I'm quite surprised because it means that, sometimes, Could you try to modify lines
By the way, prop |
@bd-arc thanks for your quick reply! |
@kadoshms I'll make sure to release it today ;-) Just to make sure that there wasn't a deeper issue at stake, can you confirm that the log is showing up in your debug console? |
@bd-arc sorry for forgetting about it, unfortunately it does not appear in my console. |
@kadoshms Damn! This means that the prop will do nothing for you. I don't understand it since I've tested it on a bunch of devices without having any issue. Which version of React Native are you currently using? Also, can you try the provided example and tell me if it works when patching it? |
I am using React native |
I'm not aware of any specific issue linked to RN There is also something else I am thinking about: do you, by any chance, use stateless components within the carousel? Apparently, one should avoid using stateless components when they are rendered inside scroll components (see this React Native thread). They should be migrated to regular components that extend |
@bd-arc I will upgrade and give you feedback soon! (it will take a bit but I will, this feature is a game changer for me and I would really want to use it). BTW - I am using PureComponents :) |
Good to know! Note that if you don't want to upgrade your project (which, I know for a fact, can get ugly real quick), you just have to:
This could actually be way faster for you ;-) |
Hi @kadoshms, Any news regarding the issue? |
I wasnt able to check yet, but I am deffinelty want to do that soon! please leave this ticket open :) |
Don't worry, I'm not closing it until we've got to the bottom of the issue ;-) |
@bd-arc in the meantime, can you please publish the fixed you suggested above with a fix tag? |
@kadoshms That's the plan. But there is another issue I want to fix before publishing a new release. I'll keep you posted! |
@kadoshms The fix has been published in version |
Your'e awesome, thanks! |
@kadoshms No problem ;-) I noticed that you've closed the issue; does it mean that you've been able to use |
yes! |
Hi!
First of all I'd like to thank you for this great library, it saved me some precious time.
Iv'e started using it a while ago and still watching changes, mostly Android performance improvements since my usage of this component is a bit non-trivial
Well, I just noticed that you added the
lockScrollWhileSnapping
prop - and got excited about it, and rushed to use it.Now I get this exception when scrolling:
My carousel renderer:
I am looking forward for your opinion!
Thanks.
The text was updated successfully, but these errors were encountered: