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 useAnimatedKeyboard animation restart on iOS #4266

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

piaskowyk
Copy link
Member

@piaskowyk piaskowyk commented Mar 23, 2023

Summary

When you try to hide animation during keyboard opening, this ends the current animation and starts another one. I added a missing flag setter to prevent the clearing of the displayLink object.

Test plan

Before After
Screen.Recording.2023-03-23.at.17.26.21.mov
Screen.Recording.2023-03-23.at.17.23.40.mov

Fixes #4194

@piaskowyk piaskowyk requested a review from tomekzaw March 23, 2023 16:28
@ex3ndr
Copy link

ex3ndr commented Apr 11, 2023

Any ETA for release?

fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
## Summary

When you try to hide animation during keyboard opening, this ends the
current animation and starts another one. I added a missing flag setter
to prevent the clearing of the displayLink object.

## Test plan

| Before      | After |
| ----------- | ----------- |
| <video
src="https://user-images.githubusercontent.com/36106620/227270299-5f7cd5e6-21b3-47c3-85fb-2860fb9fbac9.mov"
/> | <video
src="https://user-images.githubusercontent.com/36106620/227269574-bf94ebc9-3132-49d9-bd2d-f5cd8671990c.mov"
/> |

Fixes
software-mansion#4194
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.

[v3][iOS] useAnimatedKeyboard smooth animation breaks with keyboardDismissMode="on-drag"
3 participants