From 91696f71d1b758b8f14cfb00fea7985f09ae778f Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Wed, 23 Aug 2017 23:45:18 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/stylesheet.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/next/docs/stylesheet.html b/releases/next/docs/stylesheet.html index 267fcdc37a2..c864d5c639b 100644 --- a/releases/next/docs/stylesheet.html +++ b/releases/next/docs/stylesheet.html @@ -1,4 +1,4 @@ -StyleSheet

StyleSheet #

A StyleSheet is an abstraction similar to CSS StyleSheets

Create a new StyleSheet:

var styles = StyleSheet.create({ +StyleSheet

StyleSheet #

A StyleSheet is an abstraction similar to CSS StyleSheets

Create a new StyleSheet:

const styles = StyleSheet.create({ container: { borderRadius: 4, borderWidth: 0.5, @@ -43,7 +43,7 @@ used to create a customized entry in a StyleSheet, e.g.:

co Alternatively, this method can be used to lookup IDs, returned by StyleSheet.register.

NOTE: Exercise caution as abusing this can tax you in terms of optimizations.

IDs enable optimizations through the bridge and memory in general. Refering -to style objects directly will deprive you of these optimizations.

Example:

var styles = StyleSheet.create({ +to style objects directly will deprive you of these optimizations.

Example:

const styles = StyleSheet.create({ listItem: { flex: 1, fontSize: 16,