Skip to content

Commit d103722

Browse files
mateoguzmanafacebook-github-bot
authored andcommitted
Migrate YogaMeasureFunction to Kotlin (#1835)
Summary: Migrate com.facebook.yoga.YogaMeasureFunction to Kotlin. Pull Request resolved: #1835 Test Plan: RN ```sh yarn android yarn test-android ``` Yoga ```sh ./gradlew :yoga:assembleDebug ``` Reviewed By: mdvacca Differential Revision: D79897728 Pulled By: cortinico fbshipit-source-id: 959ae976622838147685cf6088674dce25f5cc99
1 parent 714d4b2 commit d103722

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

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)