callstack / callstack/masked-view

Canvas: trying to draw too large(157883040bytes) bitmap.

Open
#234 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
131
PR merge metrics
No merged PRs in 30d

Description

RuntimeException android.graphics.RecordingCanvas in throwIfCannotDraw

image

```tsx
type HeaderBottomMaskedProps = {
children?: ReactNode;
disabled?: boolean;
};

const toBlack = ['rgba(0,0,0,0)', 'rgb(0,0,0)'];
const fromBlack = ['rgb(0,0,0)', 'rgba(0,0,0,0)'];
const blackStyle = {
flex: 1,
backgroundColor: '#000000',
marginTop: -0.1,
marginBottom: -0.1,
} as const;
const height20 = { height: 20 };
const maskedViewStyle = {
flex: 1,
display: 'flex',
flexDirection: 'column',
} as const;

const HeaderBottomMasked: FC = ({
children,
disabled = false,
}) => {
const { height } = useWindowDimensions();
return (

) : (





)
}
style={maskedViewStyle}
>
{children}

);
};

export default memo(HeaderBottomMasked);
```

Anyone can help me?

children have FlatList

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.