Open daheeahn opened 1 year ago
const filepath = await captureRef(viewShotRef, {
format: 'jpg',
quality: 0.9,
useRenderInContext: true,
});
<ViewShot ref={viewShotRef}>
...
</ViewShot>
captureRef
was the solution for me
The same error for IOS
[Error: The view cannot be captured. drawViewHierarchyInRect was not successful. This is a potential technical or security limitation.]
"react-native": "0.72.7",
const filepath = await captureRef(viewShotRef, { format: 'jpg', quality: 0.9, useRenderInContext: true, }); <ViewShot ref={viewShotRef}> ... </ViewShot>
captureRef
was the solution for me
It didn't fix the error for me
@Akyna can you please share more data? "react-native": "0.72.7"
works fine for me
@Akyna can you please share more data?
"react-native": "0.72.7"
works fine for me
"react-native-view-shot": "^3.8.0",
cc @iliapnmrv
@iliapnmrv this help
useRenderInContext: true,
Thx!
I faced these errors What is the error and how can I fix it?
my code
error