Skip to content

Commit 39fad8f

Browse files
MacKenzieHnCmackenzie
and
mackenzie
authored
feat(windows): store directory for later access (#639)
Co-authored-by: mackenzie <mackenzie@yourmoms>
1 parent 5fa2112 commit 39fad8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

windows/ReactNativeDocumentPicker/RCTDocumentPickerModule.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPrio
130130
};
131131

132132
tcs.SetResult(obj);
133+
// TODO: Replace with a more principled solution
134+
Windows.Storage.AccessCache.StorageApplicationPermissions.
135+
FutureAccessList.AddOrReplace("pickedFolderToken", folder);
133136
}
134137
else
135138
{
@@ -212,7 +215,7 @@ await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPrio
212215
}
213216
else
214217
{
215-
tcs.SetResult(new List<JSValueObject>());
218+
tcs.SetResult(new List<JSValueObject>());
216219
}
217220
});
218221

0 commit comments

Comments
 (0)