'getting NULLPOINTEREXCEPTION using custom image picker

Here is my ImagePicker component. It works fine as expected in development mode. But when I build and upload it to the google play console for the test, it crashes and the error is

NULLPOINTEREXCEPTION
Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter mImageLoader

What might be the cause? Here is my gist https://gist.github.com/bytesagar/3c7e8442fbf683c84caf03108a86b176 #reactnative



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source