feat(windows): store directory for later access (#639)

Co-authored-by: mackenzie <mackenzie@yourmoms>
This commit is contained in:
Ahab 2023-03-21 16:00:14 -05:00 committed by GitHub
parent 5fa2112722
commit 39fad8fd67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,6 +130,9 @@ namespace RNDocumentPicker
};
tcs.SetResult(obj);
// TODO: Replace with a more principled solution
Windows.Storage.AccessCache.StorageApplicationPermissions.
FutureAccessList.AddOrReplace("pickedFolderToken", folder);
}
else
{
@ -212,7 +215,7 @@ namespace RNDocumentPicker
}
else
{
tcs.SetResult(new List<JSValueObject>());
tcs.SetResult(new List<JSValueObject>());
}
});