Skip to content

Commit

Permalink
fix doc typo
Browse files Browse the repository at this point in the history
Summary: As per title

Reviewed By: fabiocarballo

Differential Revision: D51304909

fbshipit-source-id: b6bd9865388e26e05e57e81a703e1f141eb5dc7e
  • Loading branch information
Andrew Wang authored and facebook-github-bot committed Nov 14, 2023
1 parent ed0119c commit 46cb694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/mainconcepts/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ For information on making components overlap each other, see [Absolutely positio

Use the following to center components:

* `[alignItems](#distribution-along-the-cross-axis) = CENTER` - to center components inside the `Row` along the vertical axis.
* `[justifyContent](/docs/mainconcepts/flexbox-yoga#distribution-along-the-main-axis) = CENTER` - to center components inside the `Row` along the horizontal axis.
* [`alignItems = CENTER`](#distribution-along-the-cross-axis) - to center components inside the `Row` along the vertical axis.
* [`justifyContent = CENTER`](/docs/mainconcepts/flexbox-yoga#distribution-along-the-main-axis) - to center components inside the `Row` along the horizontal axis.

If it is specific to `Text`, then consider using `verticalGravity`/`horizontalGravity` props of the `Text` component to keep it center-aligned:

Expand Down

0 comments on commit 46cb694

Please sign in to comment.