Skip to content
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

Ability to use onScroll with the List #26

Closed
kayode0x opened this issue Dec 26, 2021 · 8 comments · Fixed by #31
Closed

Ability to use onScroll with the List #26

kayode0x opened this issue Dec 26, 2021 · 8 comments · Fixed by #31
Labels
🥺 feature request Request a new feature

Comments

@kayode0x
Copy link

I need to use onScoll to control my header, it's available to the native FlatList but it's not here. Can you fix this, please? thanks.

ps I get this error:

onScroll: (event: any) => void; }' is not assignable to type 'IntrinsicAttributes & Props<unknown>'.
  Property 'onScroll' does not exist on type 'IntrinsicAttributes & Props<unknown>'.
@hyochan hyochan added the 🥺 feature request Request a new feature label Jan 4, 2022
@jzxchiang1
Copy link

Not sure why this was explicitly disabled.

@kayode0x
Copy link
Author

kayode0x commented Mar 2, 2022

@jzxchiang1 were you able to fix this?

@jzxchiang1
Copy link

Unfortunately not. I had to patch the package using npx patch-package .... It's actually quite a simple change locally.

@kayode0x
Copy link
Author

kayode0x commented Mar 5, 2022

Were you able to use onScroll after patching the package? 😮

@jzxchiang1
Copy link

Yeah, so I wanted to use an Animated.event inside the onScroll, so I manually changed the library code to use that (and made the ScrollView an Animated.ScrollView).

@kayode0x
Copy link
Author

kayode0x commented Mar 7, 2022

Awesome, do you mind sharing your code? thanks

@kayode0x
Copy link
Author

hey @jzxchiang1, can you share your source code or walkthrough on how to get this? thanks again

hyochan added a commit that referenced this issue Apr 2, 2022
@hyochan hyochan mentioned this issue Apr 2, 2022
4 tasks
hyochan added a commit that referenced this issue Apr 2, 2022
@danielprrazevedo
Copy link

@jzxchiang1 I'm a little late, but if you're still having problems, check this out and see if it can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🥺 feature request Request a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants