mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Make IntArray events work on Bridgeless for RN-Tester (#41047)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c9d0a006fd
commit
805f74f2a8
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
+1
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user