You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried with this code also but there is no error logs and no clue to fix this.
const captureSnapshot = async () => {
try {
const uri = await captureRef(viewRef, {
format: 'png', // You can change the format if needed
quality: 1, // Quality of the image, from 0 to 1
});
// Do something with the captured image URI (e.g., save it to disk or display it)
console.log('Snapshot URI:', uri);
} catch (error) {
console.error('Error capturing snapshot:', error);
}
};
Hi guys, I have found the alternative for this. since this is not working well for Android.
Here you can use React Native Skia: Snapshot Views | React Native
bug report
In react native latest version (0.73.6) snapshot is not capturing in Android device. It works fine in IOS.
Version & Platform
Platform: Android
Expected behavior
It should return with URI of the image
Actual behavior
It returns nothing
Sample Code
The text was updated successfully, but these errors were encountered: