react-native-image-resizer: [TypeError: null is not an object (evaluating 'ImageResizerAndroid.createResizedImage
Android only as my project doesn’t require iOS.
I have an odd issue which I can solve:
ImageResizer.createResizedImage('file:////storage/emulated/0/test.jpg', 2048, 1536, 'JPEG', 100, 0).then((response) => {
console.log(response)
}).catch((err) => {
console.log(err)
});
Always gives me null is not an object (evaluating 'ImageResizerAndroid.createResizedImage
The image is there an in that path as I can display it. Is there something obvious I’m missing?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 18 (1 by maintainers)
I already to fix by manual install https://github.com/bamlab/react-native-image-resizer/blob/master/docs/android_manual_config.md
Any update? I’m facing this issue in Android too
Also seeing this for Android after following the standard installation steps i.e.
yarn add @bam.tech/react-native-image-resizer