Repository navigation
Closed
Labels
Impact: RegressionDescribes a behavior that used to work on a prior release, but stopped working recently.Issue: Author Provided ReproThis issue can be reproduced in Snack or an attached project.Platform: AndroidAndroid applications.Ran CommandsOne of our bots successfully processed a command.Resolution: FixedA PR that fixes this issue has been merged.Resolution: LockedThis issue was locked by the bot.
Description
Setting borderStyle has no effect on Android. Regardless of the setting, the border will always be solid.
Environment
Environment:
OS: macOS Sierra 10.12.6
Node: 7.10.1
Yarn: 1.2.1
npm: 4.2.0
Watchman: 4.5.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.54.0 => 0.54.0
Expected Behavior
When setting the borderStyle to "dashed" or "dotted", I expect the view to have a dashed or dotted border. This works correctly on iOS:
Actual Behavior
Regardless of setting, the border is solid on Android:
Steps to Reproduce
Create a View with styles specifying a borderWidth, borderColor, and borderStyle (borderRadius was also set, since there seem to be existing issues with the border when borderRadius is not specified).
This component will reproduce the issue:
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<Text>Changes you make will automatically reload.</Text>
<Text>Shake your phone to open the developer menu.</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
marginVertical: 200,
marginHorizontal: 20,
borderColor: '#000',
borderRadius: 5,
borderWidth: 5,
borderStyle: 'dashed'
},
});
An Expo Snack is also available that reproduces the issue: https://snack.expo.io/r1NCAukKf
Reacted by Isaac Lem, alikamts, Mark Terence Tiglao, Valentin Schlattinger, Rob Camp, Ian Martorell, Guergana Tzatchkova, deathnopool and Yauhen
Metadata
Metadata
Assignees
Labels
Impact: RegressionDescribes a behavior that used to work on a prior release, but stopped working recently.Issue: Author Provided ReproThis issue can be reproduced in Snack or an attached project.Platform: AndroidAndroid applications.Ran CommandsOne of our bots successfully processed a command.Resolution: FixedA PR that fixes this issue has been merged.Resolution: LockedThis issue was locked by the bot.


Activity
isaaclem commentedon Mar 9, 2018
Similar issue to #17251
hramos commentedon Mar 9, 2018
Did this use to work on a prior version? This might have a higher priority if it's a regression.
patricksmith commentedon Mar 9, 2018
@hramos I can't speak to if it recently stopped working -- I've only tried using this setting on
v0.53.3andv0.54.0and it worked on neither version. There's a couple closed issues that suggest it was working previously working when specifying aborderRadius(which I did in this case); #17251 (comment), for example.allengleyzer commentedon Mar 10, 2018
@hramos I can confirm that this was working on v0.48.4. A
borderRadiusvalue was required, but once set, dashed and dotted borders worked as expected.I can also confirm that the functionality broke as a result of this commit (and hence it stopped working in v0.51): 4994d6a
(From the comments on the commit, it looks like it introduced other issues also.)
Implement partial rounded borders
alikamts commentedon Mar 16, 2018
I am facing the same issue. Do you resolved it?
7 remaining items
idosofi commentedon May 16, 2018
BrendanBerkley commentedon May 22, 2018
hramos commentedon May 24, 2018
It's a known issue - no need to add more "me too" comments for now.
BrendanBerkley commentedon May 24, 2018
@hramos Good to know! I normally don't do +1 types of posts but react-native-bot was asking if it worked on the latest version, and the Old Version tag is still in place, so I felt a clarification was necessary.
hramos commentedon Jun 15, 2018
Can people verify if this is fixed in
0.56.0-rc.1?nhayfield commentedon Aug 31, 2018
@hramos It is not fixed. I am getting same issue in 0.56.0-rc.1
hramos commentedon Aug 31, 2018
@nhayfield can you open a new issue? Ideally, use 0.57.0-rc as that is the release we are working on releasing at the moment.
Allows to set individual (left,top,right,bottom) dotted/dashed borders (
Merge 0.66 into master (#951)
Upgrade from 0.66.0 to 0.66.4 (#977)