Skip to content

Commit cbf1169

Browse files
mateoguzmanafacebook-github-bot
authored andcommitted
Make ViewGroupClickEvent internal (#50505)
Summary: This class can be internalized as part of the initiative to reduce the public API surface. I've checked there are [no relevant OSS usages](https://github.com/search?type=code&q=NOT+is%3Afork+NOT+org%3Afacebook+NOT+repo%3Areact-native-tvos%2Freact-native-tvos+NOT+repo%3Anuagoz%2Freact-native+NOT+repo%3A2lambda123%2Freact-native+NOT+repo%3Abeanchips%2Ffacebookreactnative+NOT+repo%3AfabOnReact%2Freact-native-notes+NOT+user%3Ahuntie+NOT+user%3Acortinico+NOT+repo%3AMaxdev18%2Fpowersync_app+NOT+repo%3Acarter-0%2Finstagram-decompiled+NOT+repo%3Am0mosenpai%2Finstadamn+NOT+repo%3AA-Star100%2FA-Star100-AUG2-2024+NOT+repo%3Alclnrd%2Fdetox-scrollview-reproductible+NOT+repo%3ADionisisChytiris%2FWorldWiseTrivia_Main+NOT+repo%3Apast3l%2Fhi2+NOT+repo%3AoneDotpy%2FCaribouQuest+NOT+repo%3Abejayoharen%2Fdailytodo+NOT+repo%3Amolangning%2Freversing-discord+NOT+repo%3AScottPrzy%2Freact-native+NOT+repo%3Agabrieldonadel%2Freact-native-visionos+NOT+repo%3AGabriel2308%2FTestes-Soft+NOT+repo%3Adawnzs03%2FflakyBuild+NOT+repo%3Acga2351%2Fcode+NOT+repo%3Astreeg%2Ftcc+NOT+repo%3Asoftware-mansion-labs%2Freact-native-swiftui+NOT+repo%3Apkcsecurity%2Fdecompiled-lightbulb+com.facebook.react.views.view.ViewGroupClickEvent). ## Changelog: [INTERNAL] - Make com.facebook.react.views.view.ViewGroupClickEvent internal Pull Request resolved: #50505 Test Plan: ```bash yarn test-android yarn android ``` Reviewed By: cortinico Differential Revision: D72549704 Pulled By: javache fbshipit-source-id: 8c90192bc088ab52e709e87870eb1c2353cf1e85
1 parent 22baacd commit cbf1169

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

packages/react-native/ReactAndroid/api/ReactAndroid.api

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7225,10 +7225,3 @@ public class com/facebook/react/views/view/ReactViewManager : com/facebook/react
72257225
public final class com/facebook/react/views/view/ReactViewManager$Companion {
72267226
}
72277227

7228-
public final class com/facebook/react/views/view/ViewGroupClickEvent : com/facebook/react/uimanager/events/Event {
7229-
public fun <init> (I)V
7230-
public fun <init> (II)V
7231-
public fun canCoalesce ()Z
7232-
public fun getEventName ()Ljava/lang/String;
7233-
}
7234-

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ViewGroupClickEvent.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ import com.facebook.react.uimanager.common.ViewUtil
1313
import com.facebook.react.uimanager.events.Event
1414

1515
/** Represents a Click on the ReactViewGroup */
16-
public class ViewGroupClickEvent(surfaceId: Int, viewId: Int) :
16+
internal class ViewGroupClickEvent(surfaceId: Int, viewId: Int) :
1717
Event<ViewGroupClickEvent>(surfaceId, viewId) {
1818

1919
@Deprecated("Use the constructor with surfaceId and viewId parameters.")
20-
public constructor(viewId: Int) : this(ViewUtil.NO_SURFACE_ID, viewId)
20+
constructor(viewId: Int) : this(ViewUtil.NO_SURFACE_ID, viewId)
2121

22-
public override fun getEventName(): String = EVENT_NAME
22+
override fun getEventName(): String = EVENT_NAME
2323

24-
public override fun canCoalesce(): Boolean = false
24+
override fun canCoalesce(): Boolean = false
2525

2626
protected override fun getEventData(): WritableMap = Arguments.createMap()
2727

0 commit comments

Comments
 (0)