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

Improvements and bug fixes for 1.5.0 #224

Merged
merged 1 commit into from
Jul 6, 2018
Merged

Conversation

fungilation
Copy link
Contributor

@fungilation fungilation commented Jun 8, 2018

Since 1.5.0, closing modal (by whichever way) no longer gets animated (did in prior version, as it should be). My state change corrections fixed this (below), as tested and in use in my own app WonderSwipe (iOS and Android). Fixes #226 #225

  • useNativeDriver for smoother animation in backdrop opacity and modal position
  • corrected various state changes, to ensure they are set before and after animations (in Animated.timing().start() callback, not the other way around)
  • fixed state.isAnimateBackdrop to always be true on animation start, false on end
  • ported hardwareAccelerated={true} back from Use hardware acceleration for Android #196 that was lost in the shuffle of merging for 1.5.0

…position

corrected various state changes, to ensure they are set before and after animations (in Animated.timing().start() callback, not the other way around)

fixed state.isAnimateBackdrop to always be true on animation start, false on end

ported hardwareAccelerated={true} back from maxs15#196 that was lost in the shuffle of merging for 1.5.0
@jjzazuet
Copy link

jjzazuet commented Jun 16, 2018

Hi @maxs15. Any interest in merging this PR? I'm getting the same close animation issue on my project. Thanks!

@maxs15 maxs15 merged commit 0af37a7 into maxs15:master Jul 6, 2018
@maxs15
Copy link
Owner

maxs15 commented Jul 6, 2018

Awesome thanks @fungilation !

@pongponglau
Copy link

I encounter the same issue. No animation when swipe close the modal and the upper right x icon is not shown too. May i ask if there is any fix? Thanks a lot

maxs15 added a commit that referenced this pull request Oct 4, 2020
Improvements and bug fixes for 1.5.0
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.

Closing modal doesn't get animated since 1.5.0
4 participants