StyleSheet

@native @JSImport("react-native", "StyleSheet") @JSType
object StyleSheet extends Object

This only checks for valid style properties, it does not "register" or optimize anymore.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def create[T <: StyleSet](styles: T): RegisteredStyleSet[T]
def flatten[T <: Object](style: T | Array[T] | Style): UndefOr[T]
@JSName("create")
def unsafeCreate[T <: Object](styleSet: T): RegisteredStyleSet[T]

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

val hairlineWidth: Double

Return the single object if either is null. Otherwise return array of styles.

Return the single object if either is null. Otherwise return array of styles.