Allow animations on the `d` prop of the Path component.
See original GitHub issueMy use case is that I’m wrapping the Path component with createAnimatedComponent
and then simply use react-native-reanimated
(their createAnimatedComponent
should be compatible to the react-native one)
I debugged the behavior a little bit and when using the wrapped component the app crashes because react-native-svg
tries to render with _path = nil
and then crashes. To be more detailed:
Elements/RNSVGPath.m
::setD
is never called and then inRNSVGRenderable.m
::renderLayerTo
it basically calls CFAutorelease
with nil
and crashes.
I wonder if this related to a wrong or missing setNativeProps
.
Anyone having a idea how to fix it.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Allow animations on the d prop of the Path component. #908
My use case is that I'm wrapping the Path component with createAnimatedComponent and then simply use react-native-reanimated (their ...
Read more >useAnimatedProps | React Native Reanimated
The animatedProps property is added when a native component is wrapped with Animated.createAnimatedComponent . If the animated props worklet uses any shared ...
Read more >CSS Motion Path - CSS: Cascading Style Sheets | MDN
Motion Path is a CSS module that allows authors to animate any graphical object along a custom path.
Read more >Motion components | Framer for Developers
These work exactly like their static counterparts, but offer props that allow you to: Animate via a simple prop. Add drag, pan, hover...
Read more >Managing and animating shape paths and masks in After Effects
You animate mask paths and shape paths in much the same way that you animate other properties: set keyframes for the Mask Path...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wow that was fast 😄 Creating a tagged template was exactly my idea as well 👍
I think there is lots of potential with animated paths especially for charts etc.
Also, wrote a small tagged template literal function: