react-native-svg
react-native-svg copied to clipboard
SVG image not import in React native
My All svg image not show path that show error is
Cannot find module '../assets/svg/dashboardcart.svg' or its corresponding type declarations.
how can I solved it please help when I think that show error after installing firebase app and firestore before work better without install firebase
my declaration.d.ts file is:
declare module "*.svg" { import React = require("react"); const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>; export default ReactComponent; }
my tsconfige file is:
{ "compilerOptions": { "jsx": "react-jsx", "lib": ["DOM", "ES2022"], "moduleResolution": "node", "target": "ES2022" }, "include": ["src/types/declarations.d.ts","declarations.d.ts"], "files": ["declarations.d.ts"], "extends": "@react-native/typescript-config/tsconfig.json" }
+1
i've solve the problem with this:
Hello @wolfxpertlab, Do you still have that issue? As I see it can be the problem with typescript configuration. If you still have that issue, Can you share a simple example to reproduce that issue? Thank you.