react-native-action-button icon indicating copy to clipboard operation
react-native-action-button copied to clipboard

[RN 0.59.9] If your android app crashes only on release build...

Open tedawf opened this issue 5 years ago • 0 comments

I recently upgraded to RN 0.59.9 and was running into this error:

E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules Process: com.rp.mobile, PID: 25745 com.facebook.react.bridge.NoSuchKeyException: backgroundColor

Turns out in ActionButton.Item.js, there was a backgroundColor prop that was declared but never passed a value hence the value was null. The fix was to pass in a string value "transparent" to buttonColor prop in renderActions() in ActionButton.js

Debug and release build works fine for IOS, debug build works fine for android but only crashes on android release build. Hope this helps someone who is upgrading their app.

tedawf avatar Jul 09 '19 02:07 tedawf