Fix comments about Yoga in LayoutPropType.

Summary:
Just a small fix: change css-layout in LayoutPropTypes to Yoga.
Closes https://github.com/facebook/react-native/pull/12509

Differential Revision: D4606716

fbshipit-source-id: c4f6c05c50d241c988604137fd12086d8a1ffb94
This commit is contained in:
desmondyao 2017-02-23 12:55:51 -08:00 committed by Facebook Github Bot
parent a0f2ca8668
commit bac24dde16
1 changed files with 6 additions and 6 deletions

View File

@ -15,10 +15,10 @@ var ReactPropTypes = require('React').PropTypes;
/**
* React Native's layout system is based on Flexbox and is powered both
* on iOS and Android by an open source project called css-layout:
* https://github.com/facebook/css-layout
* on iOS and Android by an open source project called `Yoga`:
* https://github.com/facebook/yoga
*
* The implementation in css-layout is slightly different from what the
* The implementation in Yoga is slightly different from what the
* Flexbox spec defines - for example, we chose more sensible default
* values. Since our layout docs are generated from the comments in this
* file, please keep a brief comment describing each prop type.
@ -323,7 +323,7 @@ var LayoutPropTypes = {
* that is not its parent, just don't use styles for that. Use the
* component tree.
*
* See https://github.com/facebook/css-layout
* See https://github.com/facebook/yoga
* for more details on how `position` differs between React Native
* and CSS.
*/
@ -417,8 +417,8 @@ var LayoutPropTypes = {
/** In React Native `flex` does not work the same way that it does in CSS.
* `flex` is a number rather than a string, and it works
* according to the `css-layout` library
* at https://github.com/facebook/css-layout.
* according to the `Yoga` library
* at https://github.com/facebook/yoga
*
* When `flex` is a positive number, it makes the component flexible
* and it will be sized proportional to its flex value. So a