svgRef.toDataURL() crash on Android
See original GitHub issuetoDataURL 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:
- Created 6 years ago
- Reactions:1
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any news here? I use Expo and got this crash.
I don’t remember testing recently, will have to check.