Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onLoad function not working #62

Open
tranduchieu opened this issue Jul 17, 2018 · 4 comments
Open

onLoad function not working #62

tranduchieu opened this issue Jul 17, 2018 · 4 comments

Comments

@tranduchieu
Copy link

onLoad function not working

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

Version:
react-native: 0.56.0

@ezailWang
Copy link

same issue

@6gunner
Copy link

6gunner commented Oct 9, 2018

+1

1 similar comment
@deepyu
Copy link

deepyu commented Nov 17, 2018

+1

@jhihruei
Copy link

jhihruei commented Jan 3, 2019

onLoad and onLoadEnd cannot be triggered on iOS
Ref: facebook/react-native#18802 (comment)

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 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants