react-native-gallery-manager icon indicating copy to clipboard operation
react-native-gallery-manager copied to clipboard

[Android] Crash when trying to get more assets and there are no more of them

Open facuacostag opened this issue 7 years ago • 3 comments

Hi, when you get the assets on Android and reach the "end" of them, meaning that there are no more assets, the cursor is returning undefined instead of an empty array as it happens on iOS. This causes the app to crash if not handle properly so I think that the response should be the same as in iOS when there are no more assets.

• Android First fetch returns 2 assets, which are the current assets in the device. Second call to the library causes a crash because the response is undefined. screen shot 2018-05-24 at 16 05 31

• iOS First fetch returns 1 asset, the only one available in the device. Second call returns empty array, so the app doesn't crash and everything works fine. screen shot 2018-05-24 at 16 07 04

facuacostag avatar May 24 '18 15:05 facuacostag

thanks, i will dig deeper into that

pentarex avatar May 26 '18 11:05 pentarex

Hi guys,

Any update on this ? Having the same issue

smrpl6 avatar Oct 25 '18 08:10 smrpl6

+1

indapublic avatar Nov 20 '18 00:11 indapublic