Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

This app will exhibit the bounce-back scrolling bug #6

Closed
callmejm opened this issue Oct 13, 2017 · 4 comments
Closed

This app will exhibit the bounce-back scrolling bug #6

callmejm opened this issue Oct 13, 2017 · 4 comments

Comments

@callmejm
Copy link

Failed to cast mScroller field in ScrollView (probably due to OEM changes to AOSP)! This app will exhibit the bounce-back scrolling bug :(

Suddenly get this error message , any idea ?

@cesardeazevedo
Copy link
Owner

Thanks for reporting,

Can you provide more information?, react-native version and how exactly you are using it, or even a project example that i could reproduce it.

@kfrozen
Copy link

kfrozen commented Nov 15, 2017

Hello cesardeazevedo,

I also met this issue when using the NestedScrollView as the scroll component of SectionList. I temporarily fixed it by editing the fling(int velocityY) method in ReactNestedScrollView.java, where I just call super.fling(velocityY) instead of providing custom fling logic.. but according to your comment, the custom fling logic was for supporting adding new content while the ScrollView was animating and thus, I am not sure whether my fix is a proper one or not.. Could you please have a look on this part?

Thanks.

@cesardeazevedo
Copy link
Owner

@kfrozen Hi, thanks for the information, i'm actually have no idea on how people are using this component, this project is just a fork from the original react-native ScrollView, with a few replacements to work with the native android nested-scroll-view, and i didn't write any custom logic for it.
Can you tell me how exactly you are using it together with SectionList? are you using some CoordinatorLayout? since this component is too generic, i really don't how to get started to look at it, if you could provide a example project that i could take a look, i would really appreciate.

Thanks.

@kfrozen
Copy link

kfrozen commented Nov 16, 2017

@cesardeazevedo Hi, thanks for reply. I am using it as a very simple way which just pass the NestedScrollView component to the renderScrollComponent props of SectionList, no CoordinatorLayout was used.
I think your NestedScrollView.js file works good, no need to touch this part. What I changed for testing was the public void fling(int velocityY) method inside the java file ReactNestedScrollView.java.

Thanks

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants