pentarex / react-native-gallery-manager

30 stars 41 forks source link

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

Open facuacostag opened 6 years ago

facuacostag commented 6 years ago

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
pentarex commented 6 years ago

thanks, i will dig deeper into that

neverlan commented 6 years ago

Hi guys,

Any update on this ? Having the same issue

indapublic commented 5 years ago

+1