Skip to content

Unable to resolve module react-native-svg/css #241

@AshrazRashid

Description

@AshrazRashid

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-qrcode-svg@6.3.15 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-qrcode-svg/src/LogoSVG/index.native.js b/node_modules/react-native-qrcode-svg/src/LogoSVG/index.native.js
index 6c5b14a..1c9298e 100644
--- a/node_modules/react-native-qrcode-svg/src/LogoSVG/index.native.js
+++ b/node_modules/react-native-qrcode-svg/src/LogoSVG/index.native.js
@@ -1,5 +1,6 @@
 import React from "react";
-import { LocalSvg } from "react-native-svg/css";
+import LocalSvg from 'react-native-svg/src/LocalSvg'; // ✅ FIXED PATH
+
 import { SvgUri, SvgXml } from "react-native-svg";
 import { isString, isUrlString } from "../utils";
 

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions