限制图片大小

This commit is contained in:
lyswhut 2021-12-23 16:00:04 +08:00
parent 740c5ffd94
commit 1b6263bc19

View File

@ -12,7 +12,8 @@ export default memo(({ componentId, animated }) => {
return (playMusicInfo && playMusicInfo.musicInfo) || {}
}, [playMusicInfo])
const imgWidth = getWindowSise().width * 0.5 * 0.42
const { width: winWidth, height: winHeight } = getWindowSise()
const imgWidth = Math.min(winWidth * 0.6 * 0.45, winHeight * 0.5)
return (
<View style={styles.container}>