Skip to content

use onScroll function passed in component props for iOS #31

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ntorion
Copy link

@ntorion ntorion commented Apr 24, 2019

Hi, I detected that onScroll function passed in props to PTRView component wasn't called only on iOS.
An issue related to this problem has already been opened : #28
This pull request fix the issue by adding the missing call.

@VicEsquivel
Copy link

I think it would be better to check if not null first right? Or will that be handled elsewhere?

const { onScroll } = this.props;
if(onScroll) onScroll(e);

@ntorion
Copy link
Author

ntorion commented May 27, 2019

yes a condition is required you're right

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

Successfully merging this pull request may close these issues.

3 participants