Using SVG in React Native
summary
Claims that SVG can fit into React Native while staying performant on the UI thread and shows concrete tools and hacks: uses react-native-svg and d3 to generate complex path D attributes, animates a pie by driving the end-angle multiplier, animates strokes by using Animated.addListener and setNativeProps to update stroke-dasharray imperatively, demonstrates standard Animated API and notes useNativeDriver is not yet supported for SVG (there is a working branch), and reports a production app shipped to the App Store.
AI-written summary · about
chapters (8)
- 0:00Start
- 3:30Why Vector Graphics?
- 4:42Scalable Vector Graphics (SVG)
- 6:21Positioning - the grid system
- 8:46Vector Graphics in React Native
- 10:36Native view bridge
- 12:35Pie example
- 14:55Animations
related talks
21mSVG illustrations as React Components
22mCan it be done in React Native
28mDemystifying complex animations creation process in React Native
46mAnimations in React Native
10mReact Native, your UX superhero
29mIt all starts with navigation
25mReact Native <3 60FPS -- Improving React Native animations>
35mReact Native: Building Fluid User Experiences
