From 283beb3d9c1ae2857e16c657d11cc2ae2f7166dd Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Fri, 21 Jun 2019 20:36:29 +0000 Subject: [PATCH] Deploy website Deploy website version based on 82be2841c2cc50ef5345436f5a55c7f6fc34faeb --- docs/next/style.html | 6 +++--- docs/next/style/index.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/next/style.html b/docs/next/style.html index b07f0a02b8e..558820aaa48 100644 --- a/docs/next/style.html +++ b/docs/next/style.html @@ -1,5 +1,5 @@ -Style · React NativeStyle · React Native
Edit

Style

With React Native, you don't use a special language or syntax for defining styles. You just style your application using JavaScript. All of the core components accept a prop named style. The style names and values usually match how CSS works on the web, except names are written using camel casing, e.g backgroundColor rather than background-color.

+
Edit

Style

With React Native, you don't use a special language or syntax for defining styles. You just style your application using JavaScript. All of the core components accept a prop named style. The style names and values usually match how CSS works on the web, except names are written using camel casing, e.g. backgroundColor rather than background-color.

The style prop can be a plain old JavaScript object. That's the simplest and what we usually use for example code. You can also pass an array of styles - the last style in the array has precedence, so you can use this to inherit styles.

As a component grows in complexity, it is often cleaner to use StyleSheet.create to define several styles in one place. Here's an example:

import React, { Component } from 'react';
diff --git a/docs/next/style/index.html b/docs/next/style/index.html
index b07f0a02b8e..558820aaa48 100644
--- a/docs/next/style/index.html
+++ b/docs/next/style/index.html
@@ -1,5 +1,5 @@
-Style · React NativeStyle · React Native
Edit

Style

With React Native, you don't use a special language or syntax for defining styles. You just style your application using JavaScript. All of the core components accept a prop named style. The style names and values usually match how CSS works on the web, except names are written using camel casing, e.g backgroundColor rather than background-color.

+
Edit

Style

With React Native, you don't use a special language or syntax for defining styles. You just style your application using JavaScript. All of the core components accept a prop named style. The style names and values usually match how CSS works on the web, except names are written using camel casing, e.g. backgroundColor rather than background-color.

The style prop can be a plain old JavaScript object. That's the simplest and what we usually use for example code. You can also pass an array of styles - the last style in the array has precedence, so you can use this to inherit styles.

As a component grows in complexity, it is often cleaner to use StyleSheet.create to define several styles in one place. Here's an example:

import React, { Component } from 'react';