react-native-qrcode-styled
react-native-qrcode-styled copied to clipboard
Property 'TextEncoder' doesn't exist
Hi there, this library stopped working after i did a clean build, getting error ::
-
QRCode error: ReferenceError: Property 'TextEncoder' doesn't exist at SVGQRCodeStyled -
Invariant Violation: [3427,"RNSVGLinearGradient",1,{"x1":"<<NaN>>","y1":"<<NaN>>","x2":"<<Infinity>>","y2":"<<Infinity>>","name":"topLeftCornerSquareGradient","gradient":[0,-16777216,1,-1],"gradientUnits":1,"gradientTransform":null}] is not usable as a native method argument -
Error: Exception in HostFunction: Malformed calls from JS: field sizes are different. [[75,75,75,75,75,75,75],[5,5,5,5,5,5,5],[[3443,"RNSVGGroup",1,{"propList":["fill"],"fill":{"payload":4278190080,"type":0}}]],3233]
versions ::
- react-native: "0.73.6",
- react-native-qrcode-styled: "^0.3.1",
- node v22.4.1
screenshots ::
Please suggest how to resolve the issue, Thank you
update :: adding polyfill seems to resolve the issue for now, import 'text-encoding-polyfill';
@BishalftSaikia where exactly do we need to add the Polyfill?
@vevnkataSukumar in your entry file(index.js) just paste the import on top, you can also use import 'fast-text-encoding'; this lib is maintained
Bump
Hi! Would love to see this added to the library itself