Skip to content

Commit a92c219

Browse files
authored
Call getEventDispatcher in ReactContextExtensions.kt (#3120)
## Description `react-native-gesture-handler` fails to compile on RN 0.76.0-rc.1 with new arch disabled. <img width="1624" alt="Screenshot 2024-09-23 at 13 05 09" src="https://github.com/user-attachments/assets/67ace3a7-a08c-4b9f-bfd8-ed782610c236"> ## Test plan <!-- Describe how did you test this change here. -->
1 parent 2987cf2 commit a92c219

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)!!.eventDispatcher.dispatchEvent(event)
9+
this.getNativeModule(UIManagerModule::class.java)!!.getEventDispatcher().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)