fix: crash in android player modal
This commit is contained in:
23
package-lock.json
generated
23
package-lock.json
generated
@@ -11,7 +11,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@react-native-async-storage/async-storage": "^1.21.0",
|
"@react-native-async-storage/async-storage": "^1.21.0",
|
||||||
"@react-native-community/blur": "^4.4.1",
|
"@react-native-community/blur": "^4.4.1",
|
||||||
"@react-native-community/datetimepicker": "^7.6.2",
|
"@react-native-community/datetimepicker": "^8.2.0",
|
||||||
"@react-native-community/netinfo": "^11.2.1",
|
"@react-native-community/netinfo": "^11.2.1",
|
||||||
"@react-navigation/bottom-tabs": "^6.5.12",
|
"@react-navigation/bottom-tabs": "^6.5.12",
|
||||||
"@react-navigation/elements": "^1.3.22",
|
"@react-navigation/elements": "^1.3.22",
|
||||||
@@ -2262,11 +2262,26 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@react-native-community/datetimepicker": {
|
"node_modules/@react-native-community/datetimepicker": {
|
||||||
"version": "7.6.2",
|
"version": "8.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/@react-native-community/datetimepicker/-/datetimepicker-7.6.2.tgz",
|
"resolved": "https://registry.npmjs.org/@react-native-community/datetimepicker/-/datetimepicker-8.2.0.tgz",
|
||||||
"integrity": "sha512-ogZnvCmNG/lGHhEQypqz/mPymiIWD5jv6uKczg/l/aWgiKs1RDPQH1abh+R0I26aKoXmgamJJPuXKeC5eRWtZg==",
|
"integrity": "sha512-qrUPhiBvKGuG9Y+vOqsc56RPFcHa1SU2qbAMT0hfGkoFIj3FodE0VuPVrEa8fgy7kcD5NQmkZIKgHOBLV0+hWg==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"invariant": "^2.2.4"
|
"invariant": "^2.2.4"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"expo": ">=50.0.0",
|
||||||
|
"react": "*",
|
||||||
|
"react-native": "*",
|
||||||
|
"react-native-windows": "*"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"expo": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"react-native-windows": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@react-native-community/netinfo": {
|
"node_modules/@react-native-community/netinfo": {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@react-native-async-storage/async-storage": "^1.21.0",
|
"@react-native-async-storage/async-storage": "^1.21.0",
|
||||||
"@react-native-community/blur": "^4.4.1",
|
"@react-native-community/blur": "^4.4.1",
|
||||||
"@react-native-community/datetimepicker": "^7.6.2",
|
"@react-native-community/datetimepicker": "^8.2.0",
|
||||||
"@react-native-community/netinfo": "^11.2.1",
|
"@react-native-community/netinfo": "^11.2.1",
|
||||||
"@react-navigation/bottom-tabs": "^6.5.12",
|
"@react-navigation/bottom-tabs": "^6.5.12",
|
||||||
"@react-navigation/elements": "^1.3.22",
|
"@react-navigation/elements": "^1.3.22",
|
||||||
|
|||||||
@@ -59,8 +59,6 @@ function CoverImage({
|
|||||||
return { imageSize, canvasSize };
|
return { imageSize, canvasSize };
|
||||||
}, [blurRadius, margin]);
|
}, [blurRadius, margin]);
|
||||||
|
|
||||||
console.log({ src });
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container size={imageSize} style={style}>
|
<Container size={imageSize} style={style}>
|
||||||
<BlurContainer size={canvasSize} offset={blurRadius}>
|
<BlurContainer size={canvasSize} offset={blurRadius}>
|
||||||
|
|||||||
@@ -22,13 +22,13 @@ const Info = styled.View`
|
|||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Label = styled(Text)<{ overflow?: boolean }>`
|
const Label = styled(Text)<{ $overflow?: boolean }>`
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|
||||||
${(props) => props?.overflow && css`
|
${(props) => props?.$overflow ? css`
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
`}
|
`: null}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -51,7 +51,7 @@ export default function MediaInformation() {
|
|||||||
<Container>
|
<Container>
|
||||||
<WaveformIcon fill={styles.icon.color} height={16} width={16} />
|
<WaveformIcon fill={styles.icon.color} height={16} width={16} />
|
||||||
<Info>
|
<Info>
|
||||||
<Label numberOfLines={1} overflow>
|
<Label numberOfLines={1} $overflow>
|
||||||
{albumTrack.Codec?.isDirectPlay ? t('direct-play') : t('transcoded')}
|
{albumTrack.Codec?.isDirectPlay ? t('direct-play') : t('transcoded')}
|
||||||
</Label>
|
</Label>
|
||||||
<Label numberOfLines={1}>
|
<Label numberOfLines={1}>
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import TimerIcon from '@/assets/icons/timer.svg';
|
|||||||
import { setTimerDate } from '@/store/sleep-timer';
|
import { setTimerDate } from '@/store/sleep-timer';
|
||||||
import ticksToDuration from '@/utility/ticksToDuration';
|
import ticksToDuration from '@/utility/ticksToDuration';
|
||||||
import useDefaultStyles from '@/components/Colors';
|
import useDefaultStyles from '@/components/Colors';
|
||||||
import { TouchableOpacity } from 'react-native-gesture-handler';
|
|
||||||
import { t } from '@/localisation';
|
import { t } from '@/localisation';
|
||||||
|
import { TouchableOpacity } from 'react-native';
|
||||||
|
|
||||||
const Container = styled.View`
|
const Container = styled.View`
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
|
|||||||
Reference in New Issue
Block a user