mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-22 09:58:46 -05:00
fix OOM?
This commit is contained in:
@@ -105,6 +105,9 @@ export default function Album({
|
||||
</YStack>
|
||||
|
||||
)}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
|
||||
)
|
||||
|
||||
@@ -34,6 +34,9 @@ export default function Albums({ navigation }: AlbumsProps) : React.JSX.Element
|
||||
/>
|
||||
)
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -39,8 +39,10 @@ export default function Artist({
|
||||
|
||||
return (
|
||||
<ScrollView
|
||||
alignContent="center"
|
||||
contentInsetAdjustmentBehavior="automatic"
|
||||
alignContent="center">
|
||||
removeClippedSubviews
|
||||
>
|
||||
<YStack alignContent="center" justifyContent="center" minHeight={bannerHeight}>
|
||||
<BlurhashedImage
|
||||
borderRadius={0}
|
||||
@@ -73,6 +75,9 @@ export default function Artist({
|
||||
/>
|
||||
)
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
</ScrollView>
|
||||
)
|
||||
|
||||
@@ -44,6 +44,9 @@ export default function Artists({
|
||||
/>
|
||||
)
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import { ScrollView } from "tamagui";
|
||||
export default function Index() : React.JSX.Element {
|
||||
return (
|
||||
<SafeAreaView>
|
||||
<ScrollView>
|
||||
<ScrollView removeClippedSubviews>
|
||||
|
||||
</ScrollView>
|
||||
</SafeAreaView>
|
||||
|
||||
@@ -52,6 +52,9 @@ export default function HorizontalCardList({
|
||||
/>
|
||||
) : undefined}
|
||||
}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -32,10 +32,12 @@ export function ProvidedHome({
|
||||
contentInsetAdjustmentBehavior="automatic"
|
||||
refreshControl={
|
||||
<RefreshControl
|
||||
refreshing={refetching}
|
||||
onRefresh={onRefetch}
|
||||
refreshing={refetching}
|
||||
onRefresh={onRefetch}
|
||||
/>
|
||||
}>
|
||||
}
|
||||
removeClippedSubviews // Save memory usage
|
||||
>
|
||||
<YStack alignContent='flex-start'>
|
||||
<XStack margin={"$2"}>
|
||||
<H3>{`Hi, ${Client.user!.name}`}</H3>
|
||||
|
||||
@@ -32,7 +32,11 @@ export default function Playlists({ navigation }: { navigation: NativeStackNavig
|
||||
})
|
||||
}} />
|
||||
)
|
||||
}} />
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
@@ -42,7 +42,10 @@ export default function RecentlyPlayed({
|
||||
</YStack>
|
||||
)}
|
||||
</XStack>
|
||||
<ScrollView horizontal>
|
||||
<ScrollView
|
||||
horizontal
|
||||
removeClippedSubviews // Save memory usage
|
||||
>
|
||||
{ recentTracks && recentTracks.map((recentlyPlayedTrack, index) => {
|
||||
return (
|
||||
<ItemCard
|
||||
|
||||
@@ -20,6 +20,9 @@ export default function RecentArtistsScreen({
|
||||
renderItem={({ index, item: artist }) => {
|
||||
return <Item item={artist} queueName="" navigation={navigation} />
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@ export default function RecentArtistsScreen({
|
||||
renderItem={({ index, item: artist }) => {
|
||||
return <Item item={artist} queueName="" navigation={navigation} />
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@ export default function RecentArtistsScreen({
|
||||
renderItem={({ index, item: track }) => {
|
||||
return <Item item={track} queueName="Recently Played" navigation={navigation} />
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
||||
|
||||
@@ -59,7 +59,10 @@ export default function ItemDetail({
|
||||
}
|
||||
|
||||
return (
|
||||
<ScrollView contentInsetAdjustmentBehavior="automatic">
|
||||
<ScrollView
|
||||
contentInsetAdjustmentBehavior="automatic"
|
||||
removeClippedSubviews
|
||||
>
|
||||
<YStack
|
||||
alignItems="center"
|
||||
flex={1}
|
||||
|
||||
@@ -35,6 +35,9 @@ export default function Library({
|
||||
/>
|
||||
)
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
</SafeAreaView>
|
||||
)
|
||||
|
||||
@@ -74,6 +74,9 @@ export default function Queue({ navigation }: { navigation: NativeStackNavigatio
|
||||
/>
|
||||
)
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -205,6 +205,9 @@ export default function Playlist({
|
||||
<RunTimeTicks>{ playlist.RunTimeTicks }</RunTimeTicks>
|
||||
</XStack>
|
||||
)}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -46,6 +46,9 @@ export default function FavoritePlaylists({ navigation }: FavoritePlaylistsProps
|
||||
/>
|
||||
)
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -59,6 +59,9 @@ export default function Search({
|
||||
<Item item={item} queueName={searchString ?? "Search"} navigation={navigation} />
|
||||
)
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
@@ -17,7 +17,10 @@ export default function Root({
|
||||
const { width } = useSafeAreaFrame();
|
||||
|
||||
return (
|
||||
<ScrollView contentInsetAdjustmentBehavior="automatic">
|
||||
<ScrollView
|
||||
contentInsetAdjustmentBehavior="automatic"
|
||||
removeClippedSubviews
|
||||
>
|
||||
<YGroup
|
||||
alignSelf="center"
|
||||
bordered
|
||||
|
||||
@@ -11,7 +11,10 @@ export default function DevTools() : React.JSX.Element {
|
||||
})
|
||||
|
||||
return (
|
||||
<ScrollView contentInsetAdjustmentBehavior="automatic">
|
||||
<ScrollView
|
||||
contentInsetAdjustmentBehavior="automatic"
|
||||
removeClippedSubviews
|
||||
>
|
||||
<Button onPress={cleanImageDirectory.mutate}>Clean Image Cache</Button>
|
||||
</ScrollView>
|
||||
)
|
||||
|
||||
@@ -31,6 +31,9 @@ export default function Tracks({ navigation }: { navigation: NativeStackNavigati
|
||||
|
||||
)
|
||||
}}
|
||||
style={{
|
||||
overflow: 'hidden' // Prevent unnecessary memory usage
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user