Skip to content

Commit

Permalink
Migrate com.facebook.react.uimanager.layoutanimation interfaces to Ko…
Browse files Browse the repository at this point in the history
…tlin (#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
  • Loading branch information
mateoguzmana authored and facebook-github-bot committed Jan 29, 2025
1 parent e4d1cf8 commit 2f6cb8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,5 +19,5 @@
* @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)
}

0 comments on commit 2f6cb8b

Please sign in to comment.