Skip to content

Commit 05eddd3

Browse files
mateoguzmanafacebook-github-bot
authored andcommitted
Migrate YogaMeasureFunction to Kotlin
Summary: Migrate com.facebook.yoga.YogaMeasureFunction to Kotlin. X-link: react/yoga#1835 Reviewed By: mdvacca Differential Revision: D79897728 Pulled By: cortinico fbshipit-source-id: 959ae976622838147685cf6088674dce25f5cc99
1 parent 641a79d commit 05eddd3

2 files changed

Lines changed: 19 additions & 20 deletions

File tree

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

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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 fun interface YogaMeasureFunction {
11+
/** Return a value created by YogaMeasureOutput.make(width, height); */
12+
public fun measure(
13+
node: YogaNode,
14+
width: Float,
15+
widthMode: YogaMeasureMode,
16+
height: Float,
17+
heightMode: YogaMeasureMode
18+
): Long
19+
}

0 commit comments

Comments
 (0)