-
Notifications
You must be signed in to change notification settings - Fork 340
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
Failed to capture view snapshot #489
Comments
Try adding |
Hey can you tell me in typescript it is not allowed to put collapsable={false} because there is no prop which is exporting from types in ViewShot tag is there any other way to do this or any alternate library |
You should add
|
Got same error and this not worked to me |
I found my error:
` with the maskedview i got the error, if i remove it it's all right. Obviously i need it so someone know how can i fix it? |
Any updates why on Android MaskedView is not captured? |
Any solution for this on Android? I use svg Mask to solve this problem but because my component is complicated it is a lot of work and some elements like expo icons doesn't work with svg Mask. It would be great if you solve this problem, on iOS it works with no problem. |
I'm using ImageBackground from react-native and continue to encounter the error on Android, even after setting collapsible to false. However, it works perfectly on iOS.
|
try changing style like |
Failed to capture view snapshot
i have issue , when run android
// function CaptureScreen
const handleCaptureScreen = () => {
captureRef(viewShotRef, {
format: 'png',
quality: 0.8,
result: 'base64',
}).then(base64 => {
const option = {
url: 'data:image/jpg;base64,' + base64,
};
callbackCaptureSignatureView(base64);
console.log('signature option', option);
});
};
<View
style={{
position: 'absolute',
top: 0,
right: 0,
left: 0,
bottom: 0,
backgroundColor: 'transparent',
borderWidth: 1,
// height: size.REM * 150,
// height: 150,
// borderColor: colors.BG_COLOR_HEADER,
// borderBottomColor: colors.BG_COLOR_HEADER,
// backgroundColor: '#fff',
}}
disabled={true}>
<View
style={[styles.containerForIpad]}
{...panResponder.panHandlers} // Quyết định có vẽ được trên view hay không
>
<Svg
width="100%"
height="100%"
preserveAspectRatio="none"
disabled={true}
ref={ref => {
// this?.svg = ref;
}}>
{renderPath()}
{/** 現在、一筆書きしている最中のパスの描画 */}
The text was updated successfully, but these errors were encountered: