From 1252f63c18efa75f72dcb5bf53c0888bd707a2db Mon Sep 17 00:00:00 2001 From: Fabrizio Cucci Date: Tue, 2 Apr 2024 12:05:06 -0700 Subject: [PATCH] Kotlinify LayoutCreateAnimation (#43740) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43740 Changelog: [Internal] As part of the Sustainability Week (see [post](https://fb.workplace.com/groups/251759413609061/permalink/742797531171911/)). Reviewed By: rshest Differential Revision: D55588908 fbshipit-source-id: 4e502e32e6b43ca1df866ab7ba4653d3cee0ec65 --- ...CreateAnimation.java => LayoutCreateAnimation.kt} | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) rename packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/{LayoutCreateAnimation.java => LayoutCreateAnimation.kt} (58%) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.kt similarity index 58% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.kt index f103cc69ac0c08..4392b552ea7170 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.kt @@ -5,19 +5,13 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.uimanager.layoutanimation; - -import com.facebook.infer.annotation.Nullsafe; +package com.facebook.react.uimanager.layoutanimation /** * Class responsible for handling layout view creation animation, applied to view whenever a valid * config was supplied for the layout animation of CREATE type. */ -/* package */ @Nullsafe(Nullsafe.Mode.LOCAL) -class LayoutCreateAnimation extends BaseLayoutAnimation { +internal class LayoutCreateAnimation : BaseLayoutAnimation() { - @Override - boolean isReverse() { - return false; - } + override fun isReverse(): Boolean = false }