From 0fa4ee644811e6a933ecabdcf434ba68c7b922dc Mon Sep 17 00:00:00 2001 From: SmashinFries Date: Fri, 3 Nov 2023 01:55:01 -0500 Subject: [PATCH] feat(example): filter GGUF model files (#32) --- 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) {