Skip to content

"Border: none" shorthand creates Parse Error #103

@romainbraun

Description

@romainbraun

Error
Error: Failed to parse declaration "border: none"
image

Test repo
https://github.com/romainbraun/rn59-border-none-regression

Steps

  • Create new react native project
  • Add styled-components
  • Use a styled view with the border: none property
  • Run the app

Expected behaviour
The view has no border

Actual Behaviour
The app errors

Notes

  • Using border: 0; works fine.
  • Tested it with RN 0.57.8, 0.58, 0.59, and styled-components 4.2, 3.4.5 IIRC

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions