Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onLayout={e => {
const { height } = e.nativeEvent.layout;
if (!inlineExclusion) {
setInlineExclusion({
exclusion: new BoxExclusion(
0,
0,
contentWidth * 0.35 + spacing(2),
height + spacing(2)
),
height
});
}
}}
>