From ae8be2a766b549185e5c051ab576a6c4413fa0a1 Mon Sep 17 00:00:00 2001 From: SmashinFries Date: Thu, 2 Nov 2023 23:06:35 -0500 Subject: [PATCH] feat: filter GGUF model files --- example/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/App.tsx b/example/src/App.tsx index e644e7d6..d14eaa54 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -131,7 +131,7 @@ export default function App() { } const handlePickModel = async () => { - DocumentPicker.pick() // TODO: Is there a way to filter GGUF model files? + DocumentPicker.pick({type: Platform.OS === 'ios' ? 'public.data' : 'application/octet-stream'}) .then(async (res) => { let [file] = res if (file) {