Migrate YogaConfigFactory to Kotlin (#1833)

Summary:
Migrate com.facebook.yoga.YogaConfigFactory to Kotlin.

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

Test Plan:
RN
```sh
yarn android
yarn test-android
```

Yoga
```sh
./gradlew :yoga:assembleDebug
```

Reviewed By: rshest

Differential Revision: D79897762

Pulled By: cortinico

fbshipit-source-id: 9457b307204f2066a02690f96a88fce6755f915e
This commit is contained in:
Mateo Guzmán
2025-08-13 06:46:48 -07:00
committed by Facebook GitHub Bot
parent 499a825836
commit bf1cbd29c0

View File

@@ -5,10 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
package com.facebook.yoga; package com.facebook.yoga
public abstract class YogaConfigFactory { public object YogaConfigFactory {
public static YogaConfig create() { @JvmStatic public fun create(): YogaConfig = YogaConfigJNIFinalizer()
return new YogaConfigJNIFinalizer();
}
} }