react-native-qrcode icon indicating copy to clipboard operation
react-native-qrcode copied to clipboard

onLoad function not working

Open lemotran opened this issue 7 years ago • 4 comments

onLoad function not working

<QRCode value={id} size={200} onLoad={this.QRCodeOnLoad} />

Version: react-native: 0.56.0

lemotran avatar Jul 17 '18 13:07 lemotran

same issue

ezailWang avatar Aug 28 '18 09:08 ezailWang

+1

6gunner avatar Oct 09 '18 07:10 6gunner

+1

deepyu avatar Nov 17 '18 06:11 deepyu

onLoad and onLoadEnd cannot be triggered on iOS Ref: https://github.com/facebook/react-native/issues/18802#issuecomment-401764616

Add baseUrl: '', in Canvas.js can work for me:

source={{
  html:
    "<style>*{margin:0;padding:0;}canvas{transform:translateZ(0);}</style><canvas></canvas><script>var canvas = document.querySelector('canvas');(" +
    renderString +
    ').call(' +
    contextString +
    ', canvas);</script>',
  baseUrl: '', // Add this line
}}

BTW, this repo is no longer maintain 😢

jhihruei avatar Jan 03 '19 04:01 jhihruei