NativeScript / plugins

@nativescript plugins to help with your developments.
https://docs.nativescript.org/plugins/index.html
Apache License 2.0
187 stars 104 forks source link

fix: empty `path` in selected assets + added `augementAssetsInfo` and `resolveWhenDismissed` options #581

Closed farfromrefug closed 2 weeks ago

farfromrefug commented 2 months ago

The code was wrong and would end up with empty path. The reason is that the path field was set after an async iOS method without awaiting with a promise. The timeout fix was not an actual fix.It would fail in many cases (slow device, too many item selected). Now we use an async and await, thus we can remove the setTimeout. Also added :

Please test this before any release