Skip to content

Commit 65fb328

Browse files
mysport12m-bert
andauthored
fix: Android event dispatcher change for 0.76.0-rc.6 (#3166)
https://github.com/facebook/react-native/pull/47090/files ## Description Fixes a build failure on RN 0.76.0-rc.6 as a result of a change in the way the event dispatcher is accessed. See change here: https://github.com/facebook/react-native/pull/47090/files Note: This change breaks RN 0.76.0-rc.5 and below <!-- Description and motivation for this PR. Include 'Fixes #<number>' if this is fixing some issue. --> ## Test plan <!-- Describe how did you test this change here. --> - Android build fails with RN 0.76.0-rc.6 before the change - Successful build with RN 0.76.0-rc.6 after the change --------- Co-authored-by: Michał Bert <63123542+m-bert@users.noreply.github.com>
1 parent e5a9227 commit 65fb328

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

FabricExample/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"patch-package": "^6.5.0",
1717
"postinstall-postinstall": "^2.1.0",
1818
"react": "18.3.1",
19-
"react-native": "0.76.0-rc.2",
19+
"react-native": "0.76.0-rc.6",
2020
"react-native-gesture-handler": "link:../"
2121
},
2222
"devDependencies": {
@@ -26,10 +26,10 @@
2626
"@react-native-community/cli": "15.0.0-alpha.2",
2727
"@react-native-community/cli-platform-android": "15.0.0-alpha.2",
2828
"@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
29-
"@react-native/babel-preset": "0.76.0-rc.2",
30-
"@react-native/eslint-config": "0.76.0-rc.2",
31-
"@react-native/metro-config": "0.76.0-rc.2",
32-
"@react-native/typescript-config": "0.76.0-rc.2",
29+
"@react-native/babel-preset": "0.76.0-rc.6",
30+
"@react-native/eslint-config": "0.76.0-rc.6",
31+
"@react-native/metro-config": "0.76.0-rc.6",
32+
"@react-native/typescript-config": "0.76.0-rc.6",
3333
"@types/react": "^18.2.6",
3434
"@types/react-test-renderer": "^18.0.0",
3535
"babel-jest": "^29.6.3",

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

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

99
fun ReactContext.dispatchEvent(event: Event<*>) {
1010
val fabricUIManager = UIManagerHelper.getUIManager(this, UIManagerType.FABRIC) as FabricUIManager
11-
fabricUIManager.getEventDispatcher().dispatchEvent(event)
11+
fabricUIManager.eventDispatcher.dispatchEvent(event)
1212
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)