react-native-qrcode-svg
react-native-qrcode-svg copied to clipboard
preserveAspectRatio bug-fixed
Problem
I was trying to build a QR code generator app where users can put their brand logo in the middle of the QR code. Everything was working fine for square images, but rectangle images were not looking as great as they should look.
For square images

For rectangle image

After digging into the code I was able to get the below result

Solution
Removed buggy line
preserveAspectRatio='xMidYMid slice'