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: https://github.com/facebook/react-native/pull/49026

Test Plan:
```bash
yarn test-android
yarn android
```

Reviewed By: NickGerleman

Differential Revision: D68794415

Pulled By: Abbondanzo

fbshipit-source-id: 690d69e8360fb51eb0232b2ed2b4676e0d1a9ee6
This commit is contained in:
Mateo Guzmán
2025-01-29 07:09:04 -08:00
committed by Facebook GitHub Bot
parent e4d1cf8ce9
commit 2f6cb8ba08
2 changed files with 6 additions and 6 deletions
@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.uimanager.layoutanimation;
package com.facebook.react.uimanager.layoutanimation
/** Listener invoked when a layout animation has completed. */
public interface LayoutAnimationListener {
void onAnimationEnd();
public fun interface LayoutAnimationListener {
public fun onAnimationEnd()
}
@@ -5,10 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.uimanager.layoutanimation;
package com.facebook.react.uimanager.layoutanimation
/** Interface for an animation type that takes care of updating the view layout. */
/* package */ interface LayoutHandlingAnimation {
internal interface LayoutHandlingAnimation {
/**
* Notifies the animation of a layout update in case one occurs during the animation. This avoids
* animating the view to the old layout since it's no longer correct; instead the animation should
@@ -19,5 +19,5 @@ package com.facebook.react.uimanager.layoutanimation;
* @param width the new width value for the view
* @param height the new height value for the view
*/
void onLayoutUpdate(int x, int y, int width, int height);
fun onLayoutUpdate(x: Int, y: Int, width: Int, height: Int)
}