callstack / callstack/masked-view

When the maskelement is an image , the masked view is not rendered(Android)

Open
#191 5 comments 8 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
131
PR merge metrics
No merged PRs in 30d

Description

When the maskelement is an image , the masked view is not rendered .
the onLoadStart in the image is only fired , whereas onLoadEnd and OnLoad is not being triggered

This works perfectly on IOS . all the three functions and triggered correctly

"react": "17.0.2",
"react-native": "0.67.5",
"@react-native-masked-view/masked-view": "^0.2.8",

const maskElement = (
console.log('onLoad')}
onLoadStart={() => console.log('onLoadStart')}
onLoadEnd={() => {
setLoaded(true);
console.log('onLoadEnd');
}}
style={{width: size, height: size, backgroundColor: 'transparent', borderRadius: size / 2}}
source={global_images.mask}
/>
);

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.