https://github.com/willtpwise/react-native-svg-transformer__not-working
https://github.com/willtpwise/react-native-svg-transformer__not-working
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/willtpwise/react-native-svg-transformer__not-working
- Owner: willtpwise
- Created: 2021-02-15T04:27:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-15T04:57:19.000Z (over 5 years ago)
- Last Synced: 2025-03-05T17:51:56.774Z (over 1 year ago)
- Language: JavaScript
- Size: 411 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# React Native SVG Transformer (Not working, reproduction)
The steps I took to make this repo:
```
expo init my-app --npm
```
```
cd my-app
```
```
expo install react-native-svg
```
```
npm i -D react-native-svg-transformer
```
create metro.config.js file using the content here https://github.com/kristerkari/react-native-svg-transformer#for-expo-sdk-v4000-or-newer
add declarations.d.ts file using the content here https://github.com/kristerkari/react-native-svg-transformer#using-typescript
```
npm start
```
_notice an error message_, the `@expo/metro-config` package imported by `metro.config.js` does not exist\*
```
npm i -D @expo/metro-config
```
```
npm start
```
click Run in web browser (everything is now good!)
add an svg icon like so https://github.com/willtpwise/react-native-svg-transformer__not-working/blob/6a111d2c545c6e8365913be289f446f131a24907/App.tsx#L4
return to browser (everything is not good!)
