import React, { memo, useMemo } from 'react' import { View, Image, StyleSheet } from 'react-native' import { useGetter } from '@/store' // import { useLayout } from '@/utils/hooks' import { getWindowSise } from '@/utils/tools' export default memo(({ componentId, animated }) => { const playMusicInfo = useGetter('player', 'playMusicInfo') const theme = useGetter('common', 'theme') const musicInfo = useMemo(() => { return (playMusicInfo && playMusicInfo.musicInfo) || {} }, [playMusicInfo]) const { width: winWidth, height: winHeight } = getWindowSise() const imgWidth = Math.min(winWidth * 0.6 * 0.45, winHeight * 0.5) return ( ) }) const styles = StyleSheet.create({ container: { flexGrow: 1, flexShrink: 1, justifyContent: 'center', alignItems: 'center', // backgroundColor: 'rgba(0,0,0,0.1)', }, content: { // elevation: 3, backgroundColor: 'rgba(0,0,0,0)', borderRadius: 4, }, img: { borderRadius: 4, // opacity: 0, }, })