Closed GarimaMathur07 closed 7 years ago
@cssivision is there any prop to stop zoom-in and zoom-out or touch event on QR Code.
Yes, you could wrap QRCode
inside a TouchableOpacity
:
<TouchableOpacity>
<QRCode
value="encoded value"
size={200}
bgColor='purple'
fgColor='white'
/>
</TouchableOpacity>
@icflorescu Thanks for answer!!
I have fixed this issue with this following approach:
<View pointerEvents="none" style={qrCode.viewStyle}>
<QRCode
value="encoded value"
size={200}
bgColor='purple'
fgColor='white'
/>
</View>
Note: 'none': The View is never the target of touch events.
@cssivision can you please help here