Skip to content

Commit

Permalink
feat(windows): store directory for later access (#639)
Browse files Browse the repository at this point in the history
Co-authored-by: mackenzie <mackenzie@yourmoms>
  • Loading branch information
MacKenzieHnC and mackenzie authored Mar 21, 2023
1 parent 5fa2112 commit 39fad8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion windows/ReactNativeDocumentPicker/RCTDocumentPickerModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPrio
};
tcs.SetResult(obj);
// TODO: Replace with a more principled solution
Windows.Storage.AccessCache.StorageApplicationPermissions.
FutureAccessList.AddOrReplace("pickedFolderToken", folder);
}
else
{
Expand Down Expand Up @@ -212,7 +215,7 @@ await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPrio
}
else
{
tcs.SetResult(new List<JSValueObject>());
tcs.SetResult(new List<JSValueObject>());
}
});

Expand Down

0 comments on commit 39fad8f

Please sign in to comment.