From b5100bf352dfee6a59b0658e58952249b8660a7e Mon Sep 17 00:00:00 2001 From: David Vacca <515103+mdvacca@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:18:24 -0800 Subject: [PATCH] Migrate ReactPointerEventsView to kotlin (#47749) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47749 Migrate ReactPointerEventsView to kotlin changelog: [internal] internal Differential Revision: D66217250 --- ...ointerEventsView.java => ReactPointerEventsView.kt} | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) rename packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/{ReactPointerEventsView.java => ReactPointerEventsView.kt} (52%) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactPointerEventsView.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactPointerEventsView.kt similarity index 52% rename from packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactPointerEventsView.java rename to packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactPointerEventsView.kt index cd35fb34218bef..40b596911be968 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactPointerEventsView.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactPointerEventsView.kt @@ -5,16 +5,14 @@ * LICENSE file in the root directory of this source tree. */ -package com.facebook.react.uimanager; - -import android.view.View; +package com.facebook.react.uimanager /** - * This interface should be implemented be native {@link View} subclasses that support pointer - * events handling. It is used to find the target View of a touch event. + * This interface should be implemented be native [View] subclasses that support pointer events + * handling. It is used to find the target View of a touch event. */ public interface ReactPointerEventsView { /** Return the PointerEvents of the View. */ - PointerEvents getPointerEvents(); + public val pointerEvents: PointerEvents }