From bac24dde16565cd1341fd91fe39f0d29088bb8fe Mon Sep 17 00:00:00 2001 From: desmondyao Date: Thu, 23 Feb 2017 12:55:51 -0800 Subject: [PATCH] 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 --- Libraries/StyleSheet/LayoutPropTypes.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Libraries/StyleSheet/LayoutPropTypes.js b/Libraries/StyleSheet/LayoutPropTypes.js index 501e74780..d8790f2af 100644 --- a/Libraries/StyleSheet/LayoutPropTypes.js +++ b/Libraries/StyleSheet/LayoutPropTypes.js @@ -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