7

I am trying to reuse some components built for web application using with .

I have a component which contains outline css property . I reuse the component , unfortunalty , i got this error :

enter image description here

My questions are :

  • What is the alternative of outline property in for both or ?

  • Is there alternative of in ?

  • Should I manage manually this difference of style properties naming among iOs DEV, android DEV as well as web DEV ?

Abdennour TOUMI
  • 87,526
  • 38
  • 249
  • 254

2 Answers2

0

use outlineStyle: "none",

Lameck Meshack
  • 4,707
  • 2
  • 10
  • 17
-4

I think you are looking for the border styles.

More specifically from the facebook react native docs:

borderWidth ReactPropTypes.number
borderStyle ReactPropTypes.oneOf(['solid', 'dotted', 'dashed'])

So for instance if you wanted to make a 10 x 10 box with dashed lines...

<View style={{ borderWidth:1, borderStyle: 'dashed', width: 10, height: 10, }} />
Teedub
  • 372
  • 1
  • 7
  • 4
    `outline` in CSS is not the same as `border`, because it doesn't affect the outer dimensions, which `border` does. – Adam Gerthel Apr 21 '19 at 21:02