Skip to content

react-native 0.61.3 Setting borderStyle does not work on Android #27133

Closed
@ihwf

Description

@ihwf

Setting the style property borderStyle to dashed or dotted for a View component does not work on Android.

The docs show available values: borderstyle

Android renders solid line for both dashed/dotted
image

iOS renders dashed
image

React Native version:

System:
OS: macOS Mojave 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Memory: 2.04 GB / 24.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.10.0 - ~/.nvm/versions/node/v12.10.0/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.10.3 - ~/.nvm/versions/node/v12.10.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.1, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
Android SDK:
API Levels: 21, 23, 25, 26, 27, 28
Build Tools: 23.0.1, 23.0.2, 25.0.2, 25.0.3, 26.0.2, 26.0.3, 27.0.2, 27.0.3, 28.0.3
System Images: android-21 | Google APIs Intel x86 Atom_64, android-28 | Intel x86 Atom_64
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 11.1/11A1027 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.3 => 0.61.3
npmGlobalPackages:
react-native-cli: 2.0.1

To Reproduce
Set a borderStyle property on a View like this:
borderWidth: 1,
borderStyle: 'dashed',

Expected Behavior
A dashed border is rendered correctly on iOS and Android

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions