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: handle unstable manualSnapToPoint variable when re-rendering #30

Merged
merged 1 commit into from
Sep 15, 2020

Conversation

gorhom
Copy link
Owner

@gorhom gorhom commented Sep 10, 2020

closes (#29)

@gorhom
Copy link
Owner Author

gorhom commented Sep 10, 2020

hi @tom751, could you try this PR

yarn add ssh://git@github.com:gorhom/react-native-bottom-sheet#fix/manual-snapping-when-rerendering

@gorhom gorhom linked an issue Sep 10, 2020 that may be closed by this pull request
@tom751
Copy link

tom751 commented Sep 11, 2020

I tested and the same bug occurred - as soon as I comment out the state update then it works again.

@gorhom
Copy link
Owner Author

gorhom commented Sep 13, 2020

@tom751 , would mind clear the metro bundler cache and try again, because i have it here working.

ezgif-4-257004df46b0

@tom751
Copy link

tom751 commented Sep 14, 2020

Ah my bad, I cleared the cache and it is working now. Great work!

@gorhom gorhom merged commit f6c5b83 into master Sep 15, 2020
@gorhom gorhom deleted the fix/manual-snapping-when-rerendering branch September 15, 2020 07:55
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.

Updating state causes methods on bottom sheet to stop working
2 participants