feat(windows): store directory for later access (#639)
Co-authored-by: mackenzie <mackenzie@yourmoms>
This commit is contained in:
parent
5fa2112722
commit
39fad8fd67
@ -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>());
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user