cssivision / react-native-qrcode

a minimalist qrcode component for react-native
MIT License
853 stars 304 forks source link

How to stop zoom-in and zoom-out animation on QR Code image #96

Open winionian opened 3 years ago

winionian commented 3 years ago

Thank for @GarimaMathur07 @icflorescu in ".../node_modules/react-native-promptpay-qr/index.js" change the to ...

<View pointerEvents="none" style={qrCode.viewStyle}>
     <QRCode
        value="encoded value"
        size={200}
        bgColor='purple'
        fgColor='white'
       />
</View>

or

   <TouchableOpacity>
      <QRCode
        value="encoded value"
        size={200}
        bgColor='purple'
        fgColor='white'
      />
    </TouchableOpacity>