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: cannot add new property 'reduceMotion' #1975

Closed
wants to merge 1 commit into from

Conversation

fobos531
Copy link
Contributor

@fobos531 fobos531 commented Oct 15, 2024

Hello!

In #1743 I introduced a fix for the sheet not appearing because of reduce motion settings. However, my implementation was faulty and caused a very annoying issue, which was fixed by @pafry7 flawlessly in #1848. After I updated to v5, this issue started reappearing. When I looked at the source code for v5, I noticed that you preserved my implementation. This PR changes the implementation back to the one from @pafry7 one, so all credits go to them.

I wasn't able to reproduce the issue in your example app, but I have confirmed locally that this diff works in my production app in which I was able to consistently reproduce it (it usually happened after I opened a sheet with dynamic sizing enabled, and then opened another one which had dynamic sizing disabled). I hope you can review and merge this PR.

Thank you!

@gorhom
Copy link
Owner

gorhom commented Oct 20, 2024

thanks @fobos531 for submitting this PR, but i decided to introduce a different approach, where i do not want to override this property by default, but allow users to override it when needed.

1ef05c7

read more: https://gorhom.dev/react-native-bottom-sheet/props#overridereducemotion

@gorhom gorhom closed this Oct 20, 2024
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.

2 participants