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(android): animated stroked path with useNativeDriver: true #1249

Merged
merged 2 commits into from
Jan 15, 2020

Conversation

HelloCore
Copy link
Contributor

Summary

  1. When animating Path with d attribute and nativeDriver:true, React sometimes sets null to the property, and it got crashed. (Still happens on RN 0.61.4 and react-native-svg 10.1.0)
    Animated Path d attribute #951 (comment)
    Animated Path d attribute #951 (comment)

  2. When animating stroke on Android, the color seems to be wrong, so I modified it by copying the implementation detail from fill

Test Plan

Try animating stroke, and path, using useNativeDriver:true
https://gist.github.com/HelloCore/bafdf02644012bb47d85e828dd734e41

Compatibility

OS Implemented
Android

Checklist

  • I have tested this on a device and a simulator

@msand msand changed the title Fix/animated stroke path fix(android): animated stroked path with useNativeDriver: true Jan 15, 2020
@msand
Copy link
Collaborator

msand commented Jan 15, 2020

Lgtm, thanks for this!

@msand msand changed the base branch from master to develop January 15, 2020 00:18
@msand msand merged commit c2c524a into software-mansion:develop Jan 15, 2020
@msand
Copy link
Collaborator

msand commented Jan 18, 2020

🎉 This PR is included in version 11.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@msand msand added the released label Jan 18, 2020
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.

3 participants