Skip to content

Commit

Permalink
Make IntArray events work on Bridgeless for RN-Tester (#41047)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #41047

Array events are currently broken in the sample for RN Tester. This is because the event name is not registered correctly.

I'm updating the event registration to be correct.

Changelog:
[Internal] [Changed] - Make IntArray events work on Bridgeless for RN-Tester

Reviewed By: cipolleschi

Differential Revision: D50266485

fbshipit-source-id: 13bbce91a41281383d4857048e573b6d9cc5387b
  • Loading branch information
cortinico authored and facebook-github-bot committed Oct 18, 2023
1 parent c9d0a00 commit 805f74f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class MyNativeView(context: ThemedReactContext) : View(context) {
viewId: Int,
private val payload: WritableMap
) : Event<OnIntArrayChangedEvent>(surfaceId, viewId) {
override fun getEventName() = "onIntArrayChanged"
override fun getEventName() = "topIntArrayChanged"

override fun getEventData() = payload
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ internal class MyNativeViewManager :
override fun getExportedCustomBubblingEventTypeConstants(): Map<String, Any> =
MapBuilder.builder<String, Any>()
.put(
"onIntArrayChanged",
"topIntArrayChanged",
MapBuilder.of<String, Any>(
"phasedRegistrationNames",
MapBuilder.of(
Expand Down

0 comments on commit 805f74f

Please sign in to comment.