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

reset animation state in TouchableOpacity and TouchableBounce #44182

Closed
wants to merge 1 commit into from

Commits on Apr 22, 2024

  1. reset animation state in TouchableOpacity and TouchableBounce (facebo…

    …ok#44182)
    
    Summary:
    
    ## Changelog:
    
    [iOS] [Fixed] - Fixed stale state on TouchableOpacity and TouchableBounce
    
    When TouchableOpacity and TouchableBounce are unmounted, we need to reset their state. This includes animation state. If we don't do that, view is unmounted on the mounting layer and animation will not be applied. This leaves view in undefined state. In TouchableOpacity, it is view with reduced opacity. TouchableBounce that is view with applied transform.
    
    This was reported in facebook#44044
    
    Reviewed By: rubennorte, cipolleschi
    
    Differential Revision: D56416571
    sammy-SC authored and facebook-github-bot committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    edfdaec View commit details
    Browse the repository at this point in the history