mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-20 00:12:53 -05:00
21 lines
649 B
TypeScript
21 lines
649 B
TypeScript
import { Dirs, FileSystem } from "react-native-file-access";
|
|
import Button from "../../../components/Global/helpers/button";
|
|
import { ScrollView } from "tamagui";
|
|
import { useMutation } from "@tanstack/react-query";
|
|
|
|
|
|
export default function DevTools() : React.JSX.Element {
|
|
|
|
const cleanImageDirectory = useMutation({
|
|
mutationFn: () => FileSystem.unlink(`${Dirs.CacheDir}/images/*`)
|
|
})
|
|
|
|
return (
|
|
<ScrollView
|
|
contentInsetAdjustmentBehavior="automatic"
|
|
removeClippedSubviews
|
|
>
|
|
<Button onPress={cleanImageDirectory.mutate}>Clean Image Cache</Button>
|
|
</ScrollView>
|
|
)
|
|
} |