Skip to content

Commit 2f6cb8b

Browse files
mateoguzmanafacebook-github-bot
authored andcommitted
Migrate com.facebook.react.uimanager.layoutanimation interfaces to Kotlin (#49026)
Summary: Migrate com.facebook.react.uimanager.layoutanimation interfaces to Kotlin ## Changelog: [INTERNAL] - Migrate com.facebook.react.uimanager.layoutanimation interfaces to Kotlin Pull Request resolved: #49026 Test Plan: ```bash yarn test-android yarn android ``` Reviewed By: NickGerleman Differential Revision: D68794415 Pulled By: Abbondanzo fbshipit-source-id: 690d69e8360fb51eb0232b2ed2b4676e0d1a9ee6
1 parent e4d1cf8 commit 2f6cb8b

File tree

2 files changed

+6
-6
lines changed

2 files changed

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

8-
package com.facebook.react.uimanager.layoutanimation;
8+
package com.facebook.react.uimanager.layoutanimation
99

1010
/** Listener invoked when a layout animation has completed. */
11-
public interface LayoutAnimationListener {
12-
void onAnimationEnd();
11+
public fun interface LayoutAnimationListener {
12+
public fun onAnimationEnd()
1313
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
package com.facebook.react.uimanager.layoutanimation;
8+
package com.facebook.react.uimanager.layoutanimation
99

1010
/** Interface for an animation type that takes care of updating the view layout. */
11-
/* package */ interface LayoutHandlingAnimation {
11+
internal interface LayoutHandlingAnimation {
1212
/**
1313
* Notifies the animation of a layout update in case one occurs during the animation. This avoids
1414
* animating the view to the old layout since it's no longer correct; instead the animation should
@@ -19,5 +19,5 @@
1919
* @param width the new width value for the view
2020
* @param height the new height value for the view
2121
*/
22-
void onLayoutUpdate(int x, int y, int width, int height);
22+
fun onLayoutUpdate(x: Int, y: Int, width: Int, height: Int)
2323
}

0 commit comments

Comments
 (0)