Skip to content

Commit

Permalink
Make IntArray events work on Bridgeless for RN-Tester
Browse files Browse the repository at this point in the history
Summary:
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
  • Loading branch information
cortinico authored and facebook-github-bot committed Oct 18, 2023
1 parent c9d0a00 commit b7bb484
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 b7bb484

Please sign in to comment.