Skip to content

Commit

Permalink
Fix headings
Browse files Browse the repository at this point in the history
  • Loading branch information
hramos authored Dec 7, 2017
1 parent fa9b8c7 commit aeb7ea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/height-and-width.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Height and Width

A component's height and width determine its size on the screen.

#### Fixed Dimensions
## Fixed Dimensions

The simplest way to set the dimensions of a component is by adding a fixed `width` and `height` to style. All dimensions in React Native are unitless, and represent density-independent pixels.

Expand All @@ -31,7 +31,7 @@ AppRegistry.registerComponent('AwesomeProject', () => FixedDimensionsBasics);

Setting dimensions this way is common for components that should always render at exactly the same size, regardless of screen dimensions.

#### Flex Dimensions
## Flex Dimensions

Use `flex` in a component's style to have the component expand and shrink dynamically based on available space. Normally you will use `flex: 1`, which tells a component to fill all available space, shared evenly amongst each other component with the same parent. The larger the `flex` given, the higher the ratio of space a component will take compared to its siblings.

Expand Down

0 comments on commit aeb7ea5

Please sign in to comment.