mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-26 13:08:38 -06:00
18 lines
593 B
TypeScript
18 lines
593 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">
|
|
<Button onPress={cleanImageDirectory.mutate}>Clean Image Cache</Button>
|
|
</ScrollView>
|
|
)
|
|
} |