-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button.js theme backgroundColor: null crashing on RN 0.59.1 Android NoSuchKey Exception: backgroundColor #2673
Button.js theme backgroundColor: null crashing on RN 0.59.1 Android NoSuchKey Exception: backgroundColor #2673
Comments
Need |
@dguillamot if you change any |
Any |
For us it was line 177 of the native base theme file native-base/components/Button.js Changing it to backgroundColor: 'transparent' resolves it for us. |
The same issue I have. Trying to get why. iOS works. |
I think its disabled property that crashes it. i passed disabled transparent small |
I am also facing this issue on Android 7.0 (Samsung Galaxy A3) real device.
|
The fix right now is adding style with backgroundColour: 'transparent' |
have the same issue |
Guys, changing all instances of backgroundColor:null to backgroundColor:"transparent" in the Buttons.js native-base-theme solved my issue.. in case you ejected the theme |
this is adding a border around button |
[eng] [rus] |
this definitely needs an urgent fix, |
@SupriyaKalghatgi whats happening with your organization? |
backgroundColor:null causes crash on Expo android, changed to 'transparent'. GeekyAnts#2673
Temporary workaround: <Button transparent style={{backgroundColor: 'transparent'}}> |
To remove a border around button: |
I'm facing the same problem. @SupriyaKalghatgi any updates here? |
Fixed in #2799. Will be available with the next version. |
Please try our latest release v.2.12.5. |
I have gone through these following points
Issue Description
node, npm, react-native, react and native-base version, expo version if used, xcode version
RN . 0.59.1 Android.. native-base 2.12.1
Expected behaviour
Using custom theme via ejectTheme.js should work on iOS and Android.
Actual behaviour
Android release crashing with error: NoSuchKeyException backgroundColor when using transparent and/or disabled style for Button.. native-base-theme/components/Button.js has multiple background: null entries.... changing these to background: transparent appears to resolve isssue.
Steps to reproduce
Is the bug present in both iOS and Android or in any one of them?
only Android, only release
Any other additional info which would help us debug the issue quicker.
The text was updated successfully, but these errors were encountered: