fix: crash in android player modal
This commit is contained in:
@@ -59,8 +59,6 @@ function CoverImage({
|
||||
return { imageSize, canvasSize };
|
||||
}, [blurRadius, margin]);
|
||||
|
||||
console.log({ src });
|
||||
|
||||
return (
|
||||
<Container size={imageSize} style={style}>
|
||||
<BlurContainer size={canvasSize} offset={blurRadius}>
|
||||
|
||||
@@ -22,13 +22,13 @@ const Info = styled.View`
|
||||
flex-shrink: 1;
|
||||
`;
|
||||
|
||||
const Label = styled(Text)<{ overflow?: boolean }>`
|
||||
const Label = styled(Text)<{ $overflow?: boolean }>`
|
||||
opacity: 0.5;
|
||||
font-size: 13px;
|
||||
|
||||
${(props) => props?.overflow && css`
|
||||
${(props) => props?.$overflow ? css`
|
||||
flex: 0 1 auto;
|
||||
`}
|
||||
`: null}
|
||||
`;
|
||||
|
||||
/**
|
||||
@@ -51,7 +51,7 @@ export default function MediaInformation() {
|
||||
<Container>
|
||||
<WaveformIcon fill={styles.icon.color} height={16} width={16} />
|
||||
<Info>
|
||||
<Label numberOfLines={1} overflow>
|
||||
<Label numberOfLines={1} $overflow>
|
||||
{albumTrack.Codec?.isDirectPlay ? t('direct-play') : t('transcoded')}
|
||||
</Label>
|
||||
<Label numberOfLines={1}>
|
||||
|
||||
@@ -7,8 +7,8 @@ import TimerIcon from '@/assets/icons/timer.svg';
|
||||
import { setTimerDate } from '@/store/sleep-timer';
|
||||
import ticksToDuration from '@/utility/ticksToDuration';
|
||||
import useDefaultStyles from '@/components/Colors';
|
||||
import { TouchableOpacity } from 'react-native-gesture-handler';
|
||||
import { t } from '@/localisation';
|
||||
import { TouchableOpacity } from 'react-native';
|
||||
|
||||
const Container = styled.View`
|
||||
align-self: flex-start;
|
||||
|
||||
Reference in New Issue
Block a user