Yoga Docs: Label All JS/TS examples as JavaScript (#1620)

Summary:
Pull Request resolved: https://github.com/facebook/yoga/pull/1620

A couple of these are labeled as TypeScript. We expose TypeScript types, but this also works as plain-old JavaScript, and is the label we use in most of the documentaion.

Reviewed By: joevilches

Differential Revision: D54884484

fbshipit-source-id: 763c56843a797db0a4f78776c55397eaa9b4a966
This commit is contained in:
Nick Gerleman
2024-03-14 11:10:50 -07:00
committed by Facebook GitHub Bot
parent 522a2bfbef
commit 3c7ac064ad
3 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ containing blocks is much more streamlined and it is helpful to frame it differe
node.setAlwaysFormsContainingBlock(true /*alwaysFormsContainingBlock*/);
```
</TabItem>
<TabItem value="ts" label="Typescript">
<TabItem value="js" label="JavaScript">
```typescript
node.setAlwaysFormsContainingBlock(true /*alwaysFormsContainingBlock*/);
```

View File

@@ -23,7 +23,7 @@ YGNodeStyleSetGap(node, YGGutterRow, amount);
node.setGap(YogaGutter.ROW, amount);
```
</TabItem>
<TabItem value="ts" label="Typescript">
<TabItem value="js" label="JavaScript">
```typescript
node.setGap(Gutter.Row, amount);
```

View File

@@ -22,7 +22,7 @@ YGNodeStyleSetPosition(node, edge, position);
node.setPosition(edge, position);
```
</TabItem>
<TabItem value="ts" label="Typescript">
<TabItem value="js" label="JavaScript">
```typescript
node.setPosition(edge, position);
```