Skip to content

Migrate YogaNodeType enum to Kotlin#1953

Closed
cortinico wants to merge 15 commits into
react:mainfrom
cortinico:export-D104666338
Closed

Migrate YogaNodeType enum to Kotlin#1953
cortinico wants to merge 15 commits into
react:mainfrom
cortinico:export-D104666338

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

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

Migrate YogaNodeType.java to YogaNodeType.kt by adding NodeType to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666338

cortinico and others added 15 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:
X-link: react/react-native#56792

Migrate YogaNodeType.java to YogaNodeType.kt by adding NodeType to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Differential Revision: D104666338
@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-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 D104666338.

@meta-codesync meta-codesync Bot closed this in d8221c2 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#1953

Pull Request resolved: #56792

Migrate YogaNodeType.java to YogaNodeType.kt by adding NodeType to KOTLIN_ENUM_NAMES in enums.py and regenerating.

Reviewed By: fabriziocucci

Differential Revision: D104666338

fbshipit-source-id: aed887c3cd1ca5f86e4ce68c38a4c75b5ab7c594
@meta-codesync

meta-codesync Bot commented May 13, 2026

Copy link
Copy Markdown

This pull request has been merged in d8221c2.

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