App exit with fresco lib, when load more than 3 images
In my app I have fresco LIB but when images from camera are too bigs and load more than 3 images the app crashes/exits with no error, just closes the app
any idea??
nativescript │ 2.5.4 tns-core-modules │ 2.5.2 tns-android │ 2.5.0 nativescript-fresco │ ^1.0.16 │
Hi @slasho
If the images are too big this can cause an Out of Memory exception. It seems like the native library has an option to resize the image before loading it in order to avoid the exception, but this option is not yet exposed by the plugin.
Hi, the original library has the resize option, but not the nativescript version, so I ended using bitmapfactory in order to create a thumb image to show but the original to upload. it would be really helpfull to add the resize support to the nativescript version.