You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
I've looked into how we can leverage the svgr compiler in order to inline SVGs into react components. This is required because the react-native Image component doesn't support svg files on iOS and Android. Rather we need to use react-native-svg to draw SVG using native primitives. In order to leverage the same react-native-svg components in electron together with react-native-web, I've created a PR to create-react-app:
Once this PR is merged we should be able to use a single SVG format on all platforms. Inlining SVGs also has the advantage that we can style them using CSS and don't need to edit colors in Sketch.
I've already gotten the svgr compiler to work on a branch: 7ce81a2
The text was updated successfully, but these errors were encountered:
I've looked into how we can leverage the
svgr
compiler in order to inline SVGs into react components. This is required because the react-nativeImage
component doesn't support svg files on iOS and Android. Rather we need to usereact-native-svg
to draw SVG using native primitives. In order to leverage the samereact-native-svg
components in electron together with react-native-web, I've created a PR tocreate-react-app
:facebook/create-react-app#4224
Once this PR is merged we should be able to use a single SVG format on all platforms. Inlining SVGs also has the advantage that we can style them using CSS and don't need to edit colors in Sketch.
I've already gotten the
svgr
compiler to work on a branch: 7ce81a2The text was updated successfully, but these errors were encountered: