Skip to content

Commit 1555c01

Browse files
mateoguzmanakikoso
authored andcommitted
Migrate YogaNodeFactory to Kotlin
Summary: Migrate com.facebook.yoga.YogaNodeFactory to Kotlin. X-link: facebook/yoga#1832 Reviewed By: zielinskimz Differential Revision: D79897733 Pulled By: cortinico fbshipit-source-id: 3ea4f5635eb8c910719c13d3087356b96b6f0746
1 parent 206bc5a commit 1555c01

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeFactory.java

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
package com.facebook.yoga
9+
10+
public object YogaNodeFactory {
11+
@JvmStatic public fun create(): YogaNode = YogaNodeJNIFinalizer()
12+
13+
@JvmStatic public fun create(config: YogaConfig): YogaNode = YogaNodeJNIFinalizer(config)
14+
}

0 commit comments

Comments
 (0)