Skip to content

Migrate YogaPositionType enum to Kotlin#1945

Closed
cortinico wants to merge 17 commits into
react:mainfrom
cortinico:export-D104666349
Closed

Migrate YogaPositionType enum to Kotlin#1945
cortinico wants to merge 17 commits into
react:mainfrom
cortinico:export-D104666349

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:
X-link: react/react-native#56789

Migrate YogaPositionType.java to YogaPositionType.kt by adding PositionType to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666349

cortinico and others added 17 commits May 12, 2026 05:42
Summary:
Migrate all hand-written Java test files in xplat/yoga/java/tests/ to Kotlin as part of the Yoga Java-to-Kotlin migration effort. Also updates the BUCK test target glob to include *.kt files. Files migrated: TestParametrization.java, utils/TestUtils.java, YogaValueTest.java, YogaLoggerTest.java, YGAlignBaselineTest.java, YogaExceptionTest.java, YogaNodeTest.java, YogaNodeStylePropertiesTest.java.

Changelog:
[Internal] -

Differential Revision: D104666348
Summary:
Migrate YogaAlign.java to YogaAlign.kt by adding Align to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Changelog:
[Internal] -

Differential Revision: D104666334
Summary: Migrate YogaBoxSizing.java to YogaBoxSizing.kt by adding BoxSizing to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666350
Summary: Migrate YogaDimension.java to YogaDimension.kt by adding Dimension to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666342
Summary: Migrate YogaDisplay.java to YogaDisplay.kt by adding Display to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666346
Summary: Migrate YogaEdge.java to YogaEdge.kt by adding Edge to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666351
Summary: Migrate YogaErrata.java to YogaErrata.kt by adding Errata to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666332
Summary: Migrate YogaExperimentalFeature.java to YogaExperimentalFeature.kt by adding ExperimentalFeature to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666330
Summary: Migrate YogaFlexDirection.java to YogaFlexDirection.kt by adding FlexDirection to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666341
Summary: Migrate YogaGridTrackType.java to YogaGridTrackType.kt by adding GridTrackType to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666336
Summary: Migrate YogaGutter.java to YogaGutter.kt by adding Gutter to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666345
Summary: Migrate YogaJustify.java to YogaJustify.kt by adding Justify to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666331
Summary: Migrate YogaLogLevel.java to YogaLogLevel.kt by adding LogLevel to KOTLIN_ENUM_NAMES in enums.py and regenerating. Also adds DO_NOT_STRIP support to the Kotlin codegen path to preserve the DoNotStrip annotation.

Differential Revision: D104666343
Summary: Migrate YogaMeasureMode.java to YogaMeasureMode.kt by adding MeasureMode to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666333
Summary: Migrate YogaNodeType.java to YogaNodeType.kt by adding NodeType to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666338
Summary: Migrate YogaOverflow.java to YogaOverflow.kt by adding Overflow to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666340
Summary:
X-link: react/react-native#56789

Migrate YogaPositionType.java to YogaPositionType.kt by adding PositionType to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666349
@vercel

vercel Bot commented May 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yoga-website Ready Ready Preview, Comment May 12, 2026 0:54am

Request Review

@meta-cla meta-cla Bot added the CLA Signed label May 12, 2026
@meta-codesync

meta-codesync Bot commented May 12, 2026

Copy link
Copy Markdown

@cortinico has exported this pull request. If you are a Meta employee, you can view the originating Diff in D104666349.

@meta-codesync meta-codesync Bot closed this in 78aac51 May 13, 2026
meta-codesync Bot pushed a commit to react/react-native that referenced this pull request May 13, 2026
Summary:
X-link: react/yoga#1945

Pull Request resolved: #56789

Migrate YogaPositionType.java to YogaPositionType.kt by adding PositionType to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Reviewed By: fabriziocucci

Differential Revision: D104666349

fbshipit-source-id: 7f81f15000f561fc11283313f74b4ae3112c2f75
@meta-codesync

meta-codesync Bot commented May 13, 2026

Copy link
Copy Markdown

This pull request has been merged in 78aac51.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant