Open tranduchieu opened 6 years ago
same issue
+1
+1
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 😢
onLoad function not working
Version: react-native: 0.56.0