Open Egizas opened 4 years ago
Thanks @Egizas! Is there any possibility for you to create some kind of example project with the problem, so that I could have a look at it? It might just be that some change is required in the config.
facing the same issue here
"Expo": 37.0.0 "react": 16.9.0 "react-native": sdk-37(with expo) "react-native-svg": "11.0.1", "react-native-svg-flagkit": "^0.9.5", "react-native-svg-transformer": "^0.14.3",
I am trying to use local file SVG, it was working fine few months ago with SDK 36. After I upgraded to expo SDK 37, I am getting this error:
Requiring module "assets\images\icons\EarthFlag.svg", which threw an exception: Invariant Violation: Tried to register two views with the same name RNSVGRect
This is how I am importing the SVG (as it worked before, there should be nothing wrong with the file itself):
import EarthFlag from '../../assets/images/icons/EarthFlag.svg';
and here is my metro.config.js file:
Maybe some of you faced the same issue, and could help me.