mastermoo / react-native-action-button

customizable multi-action-button component for react-native
MIT License
2.52k stars 570 forks source link

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

Open tedawf opened 5 years ago

tedawf commented 5 years ago

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.