From d5604f909b044104e216e8c50e87bf8adbea31f6 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Thu, 30 Oct 2014 09:24:29 -0700 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 49c6c276..79abb7f1 100644 --- a/README.md +++ b/README.md @@ -23,13 +23,13 @@ For example, ```javascript computeLayout( - {style: {height: 100, justifyContent: 'flex-end'}, children: [ - {style: {marginTop: 10}} + {style: {padding: 50}, children: [ + {style: {padding: 10, alignSelf: 'stretch'}} ]} -) +); // => -{width: 0, height: 100, top: 0, left: 0, children: [ - {width: 0, height: 0, top: 100, left: 0} +{width: 120, height: 120, top: 0, left: 0, children: [ + {width: 20, height: 20, top: 50, left: 50} ]} ```