rishichawda / react-native-qrcode-generator

A minimal QRcode component for React Native
https://www.npmjs.com/package/react-native-qrcode-generator
MIT License
32 stars 12 forks source link

fix(lib/Canvas): fix onload not triggerd #4

Closed rishichawda closed 5 years ago

rishichawda commented 5 years ago

Fix the issue where onLoad and onLoadEnd were not triggered after the view was loaded. This happens because url is about://(null) in iOS when using html in source like this: source={{ html }}. Setting the baseUrl parameter on the prop fixes the issue.

For reference : https://github.com/facebook/react-native/issues/18802#issuecomment-401764616

resolve #2