question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

svgRef.toDataURL() crash on Android

See original GitHub issue

toDataURL is working on iOS but crashing on Android.

RN version : 0.47.0 react-native-svg version : 5.4.1 react version : 16.0.0-alpha.12

Code : test(svgRef) { if (svgRef) { svgRef.toDataURL(base64 => { }) }}

<Svg width={this.props.width} height={this.props.height} ref={ref => { if (this.state.released) { this.test(ref); } }} > ... </Svg>

Error : undefined is not an object (evaluating RNSVGSvgViewMAnager.toDataURL)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
Werewolvecommented, Mar 23, 2018

Any news here? I use Expo and got this crash.

1reaction
msandcommented, Mar 6, 2018

I don’t remember testing recently, will have to check.

Read more comments on GitHub >

github_iconTop Results From Across the Web

svgRef.toDataURL() crash on Android · Issue #464 - GitHub
toDataURL is working on iOS but crashing on Android. RN version : 0.47.0 react-native-svg ... svgRef.toDataURL() crash on Android #464.
Read more >
trouble with canvas.toDataURL and drawimage on Android ...
Today, I try to debug my code on my Android phone. I find out that my app crashes when it is at var...
Read more >
Diagnosing Native Crashes | Android Open Source Project
The following sections include common types of native crash, an analysis of a sample crash dump, and a discussion of tombstones.
Read more >
Imagination Club-a College Club App Based on React Native - Morioh
React Native Toast component for both Android and iOS. It just lets iOS users have the same toast experience as on Android. Using...
Read more >
HTMLCanvasElement.toDataURL() - Web APIs | MDN
toDataURL() method returns a data URL containing a representation of the image in the format specified by the type parameter.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found