Skip to content

Commit ea341b8

Browse files
authored
Fixes Android event dispatcher for old arch (#3176)
## Description This is similar to #3166, but for the old arch ## Test plan Before this change, our app failed to build with RN 0.76.0-rc.6 without the new arch enabled. With this change, it builds and runs correctly.
1 parent 802da49 commit ea341b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/paper/src/main/java/com/swmansion/gesturehandler/ReactContextExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import com.facebook.react.uimanager.events.Event
66

77
fun ReactContext.dispatchEvent(event: Event<*>) {
88
try {
9-
this.getNativeModule(UIManagerModule::class.java)!!.getEventDispatcher().dispatchEvent(event)
9+
this.getNativeModule(UIManagerModule::class.java)!!.eventDispatcher.dispatchEvent(event)
1010
} catch (e: NullPointerException) {
1111
throw Exception("Couldn't get an instance of UIManagerModule. Gesture Handler is unable to send an event.", e)
1212
}

0 commit comments

Comments
 (0)