react-native-svg-transformer
react-native-svg-transformer copied to clipboard
Import SVG files in your React Native project the same way that you would in a Web application.
The program I used to author my SVG exported the file with fill color declared inside the style property like so: `style="stroke:none;fill:#000;fill-opacity:1;stroke-opacity:1"` The `replaceAttrValues` does not work with this method,...
Getting this error: https://stackoverflow.com/questions/59820954/syntaxerror-unknown-namespace-tags-are-not-supported-by-default Not sure what to do
This is my code: metro.config: module.exports = { transformer: { getTransformOptions: async () => ({ transform: { experimentalImportSupport: false, inlineRequires: false, }, }), }, }; const { getDefaultConfig } =...
This issue is a documentation details request. On the [Using TypeScript](https://github.com/kristerkari/react-native-svg-transformer#using-typescript) section of the readme, it says about the `declarations.d.ts` file: > create one if you don't have one already,...
Hello, I am using Expo 39's managed workflow. I followed the installation instruction, created the `metro.config.js` file, and copy-pasted the content from the instructions. I also added the `packagerOpts` field...
I seem to be getting some Typescript errors when importing a SVG. I have setup my `metro.config.js` and created a `declarations.d.ts` file as per the installation instructions. I still seem...
I have installed react-native-svg and react-native-svg-transformer and combined the metro config file as such: ``` const { getDefaultConfig } = require("metro-config"); module.exports = (async () => { const { resolver:...
https://user-images.githubusercontent.com/43211102/128126864-51344805-dc43-40cb-823e-d115fb0b39ab.mp4 I am facing this bug where the local svgs disappear after navigating back from that screen which contains those svgs. In this case, the svgs are positioned absolutely on...
I have a _monorepo_ containing **multiple apps** managed through yarn workspaces, each with it's own `metro.config.js` file. ``` module.exports = (async () => { const { resolver: {sourceExts, assetExts}, }...
I have installed in my project `expo install react-native-svg`. I have exported the svg as a component by doing: ```jsx import Logo from './logo.svg'; export default Logo; ``` It can...