Skip to content

Commit a2eb3b2

Browse files
mateoguzmanafacebook-github-bot
authored andcommitted
Migrate YogaBaselineFunction to Kotlin
Summary: Migrate com.facebook.yoga.YogaBaselineFunction to Kotlin. X-link: facebook/yoga#1831 Reviewed By: joevilches, mdvacca Differential Revision: D79897676 Pulled By: cortinico fbshipit-source-id: 2f175bf60a871c4635d1575faec1096f9c970f48
1 parent 8d998ce commit a2eb3b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
package com.facebook.yoga;
8+
package com.facebook.yoga
99

10-
public interface YogaBaselineFunction {
10+
public fun interface YogaBaselineFunction {
1111
/**
1212
* Return the baseline of the node in points. When no baseline function is set the baseline
1313
* default to the computed height of the node.
1414
*/
15-
float baseline(YogaNode node, float width, float height);
15+
public fun baseline(node: YogaNode, width: Float, height: Float): Float
1616
}

0 commit comments

Comments
 (0)