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

fix(BottomSheetScrollView): Scroll responder types use mixin #1335

Merged
merged 2 commits into from
Apr 30, 2023

Conversation

eps1lon
Copy link
Contributor

@eps1lon eps1lon commented Mar 31, 2023

Motivation

The scroll responders were typed as ReactNode which only were usable because ReactNode includes {} i.e. any non-nullish value. From React 18 going forward this is no longer the case so the types became unusable.

I'm not sure if it actually returned a ScrollResponderMixin in 0.62. Earliest (similar) usage of getScrollResponder: () => ScrollResponderMixin was in 0.63.

@eps1lon eps1lon mentioned this pull request Mar 31, 2023
@github-actions
Copy link

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@eps1lon
Copy link
Contributor Author

eps1lon commented Apr 30, 2023

bump

@gorhom gorhom added v4 Written in Reanimated v2 v5 and removed no-pr-activity labels Apr 30, 2023
@gorhom gorhom self-assigned this Apr 30, 2023
@gorhom gorhom merged commit 9c5af58 into gorhom:master Apr 30, 2023
gorhom added a commit that referenced this pull request Apr 30, 2023
…)(by @eps1lon)

* fix(BottomSheetScrollView): Scroll responder types use mixin

* chore: removed unused import

---------

Co-authored-by: gorhom <gorhom.dev@gmail.com>
@eps1lon eps1lon deleted the fix/react-node-types branch April 30, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v4 Written in Reanimated v2 v5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants