Skip to content

Instantly share code, notes, and snippets.

@andrewtremblay
Last active May 6, 2019 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewtremblay/3b91cbdf28ee551d790d281e12cb0913 to your computer and use it in GitHub Desktop.
Save andrewtremblay/3b91cbdf28ee551d790d281e12cb0913 to your computer and use it in GitHub Desktop.
# SVG Portraits in React Native
## Using the ART Library
https://upload.wikimedia.org/wikipedia/commons/0/01/Stylized_Mona_Lisa.svg
Vector graphics are the most efficient way to display your images at any resolution. And when it comes to vector graphics, svgs are the de-facto file standard.
https://github.com/facebook/react-native/tree/master/Libraries/ART
https://github.com/facebook/react-native/blob/master/Libraries/ART/ARTSurfaceView.m#L48
https://github.com/facebook/react-native/blob/v0.55.4/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTSurfaceViewShadowNode.java#L61
https://developer.apple.com/documentation/uikit/uiview/1622529-drawrect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment