-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
borderBottomColor
does not override borderColor
on Android (RN 0.72)
#38335
Comments
Issue is due to the android implementation of borderBlockColor, you can use borderBlockBottomColor as a workaround for now... I've already found the bug cause and will try submitting a PR |
I am using "native-base-shoutem-theme" https://www.npmjs.com/package/native-base-shoutem-theme in my project. Do we have any other solution for this? Is it fixed in future RN versions? |
I'm waiting for this to be fixed. The colors of 'boderRight' and 'borderBottom' only works in horizontal, vertical ways, as does 'borderBolockStartColor' and 'boderBlockEndColor' on android. if anyone knows the way out... plz let me know. |
what worked for me is define borderBottomColor, borderTopColor, borderRightColor and borderLeftColor . one bye one . |
that didnt work for me🥲 |
having the same issue on RN0.72.7. Using 'borderBolockStartColor' and 'borderBlockEndColor' fixed the horizontal border colour but not the vertical. Updates: For vertical i am using border start color and border end color. Android issue only. |
RN0.72.10 only android repro |
I had the same issue. What worked for me was set borderBottomWidth: 1, |
If you still have an issue try this: .someView{
border-left-color: $gs-500;
border-top-color: $gs-500;
border-bottom-color: $gs-500;
border-right-color: $gs-500;
}
.someViewFocus {
border-left-color: $gs-500;
border-top-color: $primary;
border-bottom-color: $primary;
border-right-color: $primary;
} sry for classes i use sass transformer, but it should be same so when setting you need to set everything specifically and when focusing do the same. |
Description
When using a
borderColor
andborderBottomColor
with different values on the sameView
:Expected result: 3 borders have the
borderColor
color, and 1 has theborderBottomColor
color.Actual result (on Android, with RN 0.72): the 4 borders have the
borderColor
color.This seems to be a regression from RN 0.71.8, where the issue is not present.
React Native Version
0.72.3
Output of
npx react-native info
Steps to reproduce
Here are screenshots and a minimal example:
Snack, code example, screenshot, or link to a repository
https://snack.expo.dev/@matthieugc/border-color-wrongly-combined
The text was updated successfully, but these errors were encountered: