Inline controls for docs

Summary:
Adding inline controls in markdown using:
```
<controls prop="flexWrap"></controls>
```

Reviewed By: emilsjolander

Differential Revision: D6987150

fbshipit-source-id: 28def12df702ba5d5d5b6a83dd1cb907716d1b1c
This commit is contained in:
Daniel Büchele
2018-02-14 07:53:07 -08:00
committed by Facebook Github Bot
parent 5f2cf6623f
commit 8c5cbf698b
15 changed files with 142 additions and 58 deletions

View File

@@ -2,7 +2,6 @@
path: "docs/aspect-ratio"
title: "Aspect Ratio"
hasPlayground: true
editableProperties: ['aspectRatio']
---
## Aspect Ratio
@@ -17,4 +16,6 @@ The aspect ratio property in Yoga has the following properties:
- Defined as the ratio between the width and the height of a node e.g. if a node has an aspect ratio of 2 then its width is twice the size of its height.
- Respects the Min and Max dimensions of an item.
- Has higher priority than FlexGrow
- If AspectRatio, Width, and Height are set then the cross dimension is overridden.
- If AspectRatio, Width, and Height are set then the cross dimension is overridden.
<controls prop="aspectRatio"></controls>