Fixup Enum Generator
Summary: https://github.com/facebook/yoga/pull/1116 adds a new enum. The enum generator is out of date with copyright header, and some codemods, but it also looks like there were manual changes, types added, etc since generation. I fixed up the script to incorporate generating the changes folks made manually, and also added an enum that was previously only added manually to the C ABI. Changelog: [General][Fixed] - Fixup Yoga Enum Generator Reviewed By: yungsters Differential Revision: D39922252 fbshipit-source-id: b678fa9a43a896873d8c434745bdaf3f16fd991f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fd180de774
commit
5a18ccdbe2
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
@@ -8,6 +8,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
|
||||
import {Record, List} from 'immutable';
|
||||
import type {RecordOf} from 'immutable';
|
||||
import PositionRecord from './PositionRecord';
|
||||
@@ -16,9 +17,9 @@ import yoga from 'yoga-layout/dist/entry-browser';
|
||||
|
||||
import type {
|
||||
Yoga$Align,
|
||||
Yoga$JustifyContent,
|
||||
Yoga$Justify,
|
||||
Yoga$FlexDirection,
|
||||
Yoga$FlexWrap,
|
||||
Yoga$Wrap,
|
||||
Yoga$PositionType,
|
||||
} from 'yoga-layout';
|
||||
|
||||
@@ -29,7 +30,7 @@ export type LayoutRecordT = RecordOf<{
|
||||
minHeight?: ?number,
|
||||
maxWidth?: ?number,
|
||||
maxHeight?: ?number,
|
||||
justifyContent?: Yoga$JustifyContent,
|
||||
justifyContent?: Yoga$Justify,
|
||||
padding: PositionRecordT,
|
||||
border: PositionRecordT,
|
||||
margin: PositionRecordT,
|
||||
@@ -43,7 +44,7 @@ export type LayoutRecordT = RecordOf<{
|
||||
flexGrow?: number,
|
||||
flexShrink?: number,
|
||||
padding?: number,
|
||||
flexWrap?: Yoga$FlexWrap,
|
||||
flexWrap?: Yoga$Wrap,
|
||||
aspectRatio?: number,
|
||||
children?: List<LayoutRecordT>,
|
||||
minWidth?: number,
|
||||
|
Reference in New Issue
Block a user