callstack / callstack/masked-view
Canvas: trying to draw too large(157883040bytes) bitmap.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 131
- PR merge metrics
- No merged PRs in 30d
Description
RuntimeException android.graphics.RecordingCanvas in throwIfCannotDraw
```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
Assessment
This issue has not been assessed yet.