Skip to content

Commit

Permalink
Convert TouchesHelper.java (#48447)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #48447

# Changelog:
[Internal] -

As in the title.

Reviewed By: tdn120

Differential Revision: D67760245

fbshipit-source-id: 5054408438de7cbdfaa7c98d9f5935f03ee93760
  • Loading branch information
rshest authored and facebook-github-bot committed Jan 2, 2025
1 parent 9e0a7e3 commit febf6f4
Show file tree
Hide file tree
Showing 4 changed files with 202 additions and 207 deletions.
7 changes: 5 additions & 2 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -5737,6 +5737,7 @@ public final class com/facebook/react/uimanager/events/TouchEvent : com/facebook
public fun dispatch (Lcom/facebook/react/uimanager/events/RCTEventEmitter;)V
public fun dispatchModern (Lcom/facebook/react/uimanager/events/RCTModernEventEmitter;)V
public fun getCoalescingKey ()S
public fun getEventCategory ()I
public fun getEventName ()Ljava/lang/String;
public final fun getMotionEvent ()Landroid/view/MotionEvent;
public final fun getTouchEventType ()Lcom/facebook/react/uimanager/events/TouchEventType;
Expand Down Expand Up @@ -5778,9 +5779,11 @@ public final class com/facebook/react/uimanager/events/TouchEventType$Companion
public final fun getJSEventName (Lcom/facebook/react/uimanager/events/TouchEventType;)Ljava/lang/String;
}

public class com/facebook/react/uimanager/events/TouchesHelper {
public final class com/facebook/react/uimanager/events/TouchesHelper {
public static final field INSTANCE Lcom/facebook/react/uimanager/events/TouchesHelper;
public static final field TARGET_KEY Ljava/lang/String;
public fun <init> ()V
public static final fun sendTouchEvent (Lcom/facebook/react/uimanager/events/RCTModernEventEmitter;Lcom/facebook/react/uimanager/events/TouchEvent;)V
public static final fun sendTouchesLegacy (Lcom/facebook/react/uimanager/events/RCTEventEmitter;Lcom/facebook/react/uimanager/events/TouchEvent;)V
}

public final class com/facebook/react/uimanager/layoutanimation/InterpolatorType : java/lang/Enum {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public class TouchEvent private constructor() : Event<TouchEvent>() {
}
}

protected override fun getEventCategory(): Int {
public override fun getEventCategory(): Int {
val type = touchEventType ?: return EventCategoryDef.UNSPECIFIED
return when (type) {
TouchEventType.START -> EventCategoryDef.CONTINUOUS_START
Expand Down

This file was deleted.

Loading

0 comments on commit febf6f4

Please sign in to comment.