(dir: LayoutFlexDirection)
| 175 | } |
| 176 | |
| 177 | setFlexDirection(dir: LayoutFlexDirection): void { |
| 178 | const map: Record<LayoutFlexDirection, FlexDirection> = { |
| 179 | row: FlexDirection.Row, |
| 180 | 'row-reverse': FlexDirection.RowReverse, |
| 181 | column: FlexDirection.Column, |
| 182 | 'column-reverse': FlexDirection.ColumnReverse, |
| 183 | } |
| 184 | this.yoga.setFlexDirection(map[dir]!) |
| 185 | } |
| 186 | |
| 187 | setFlexGrow(value: number): void { |
| 188 | this.yoga.setFlexGrow(value) |