From 17502dd743f8719d053a343b333becbc80bbf2a8 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 20 Nov 2024 18:51:34 -0800 Subject: [PATCH] Migrate ReactCompoundViewGroup to kotlin (#47751) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47751 Migrate ReactCompoundViewGroup to kotlin changelog: [internal] internal Reviewed By: javache Differential Revision: D66217251 fbshipit-source-id: b24b4ed984670e18256dda758bfa1d783badd536 --- ...eactCompoundViewGroup.java => ReactCompoundViewGroup.kt} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/{ReactCompoundViewGroup.java => ReactCompoundViewGroup.kt} (80%) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.kt similarity index 80% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.kt index 9e38a645abf..0c8f50b40ab 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactCompoundViewGroup.kt @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.uimanager; +package com.facebook.react.uimanager /** * This interface should be implemented by native ViewGroup subclasses that can represent more than @@ -13,10 +13,10 @@ package com.facebook.react.uimanager; * overlap, and TouchTargetHelper may incorrectly dispatch touch event to a wrong element because it * prioritizes children over parents. */ -public interface ReactCompoundViewGroup extends ReactCompoundView { +public interface ReactCompoundViewGroup : ReactCompoundView { /** * Returns true if react node responsible for the touch event is flattened into this ViewGroup. * Use reactTagForTouch() to get its tag. */ - boolean interceptsTouchEvent(float touchX, float touchY); + public fun interceptsTouchEvent(touchX: Float, touchY: Float): Boolean }