Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventEmitter#receiveTouches is not supported by Fabric Interop Layer #36

Open
anishamalde opened this issue Jan 9, 2025 · 4 comments
Open

Comments

@anishamalde
Copy link

anishamalde commented Jan 9, 2025

When running the app, get the error EventEmitter#receiveTouches is not supported by Fabric Interop Layer the first time I touch the screen in the OldArchitecture fragment on the newArchitectureBenchmarks branch

Output of npx react-native info

System:
  OS: macOS 15.1.1
  CPU: (12) arm64 Apple M3 Pro
  Memory: 129.16 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.7.3
    path: ~/.nvm/versions/node/v21.7.3/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v20.17.0/bin/yarn
  npm:
    version: 10.5.0
    path: ~/.nvm/versions/node/v21.7.3/bin/npm
  Watchman:
    version: 2024.09.09.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK: Not Found
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12550806
  Xcode:
    version: /undefined
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 22.0.2
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native: Not Found
  react-native-macos: Not Found
  react-native-tvos:
    installed: 0.73.6-3
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: false
@cortinico
Copy link
Member

When running the app, get the error EventEmitter#receiveTouches is not supported by Fabric Interop Layer the first time I touch the screen in the OldArchitecture fragment on the newArchitectureBenchmarks branch

Is this happening on the app itself or on your fork @anishamalde ?
The thing is that we're not maintaining this app anymore and is currently stuck at React Native 0.73. The best would to update it to 0.76 and verify if the error is still happening or not.

As the error says, receiveTouches is not supported by the Interop Layer. However, if you are in the old arch screen, you should not be going through the interop layer at all so you should not be seeing this message

@anishamalde
Copy link
Author

anishamalde commented Jan 23, 2025

Hey

This Fabric Interop error is happening on the main branch to, the only changes I made were to upgrade gradle distribution url and Java target version:

https://github.com/anishamalde/RNNewArchitectureApp/tree/upgrade-java

Screen.Recording.2025-01-23.at.17.05.38.mov

I did try and upgrade to 0.76 but it just causes the App to crash without any errors:
https://github.com/anishamalde/RNNewArchitectureApp/tree/upgrade-to-0.76

Yea I thought so too so was just wondering if there is something obvious I am missing?

@cipolleschi
Copy link
Collaborator

@anishamalde I see you are running the view-flattening example. If you look at the README in the main page, that example was not meant to run on Android. Perhaps that's why it is not working, even in the 0.76 version of the app.

@anishamalde
Copy link
Author

anishamalde commented Jan 29, 2025

Hey Riccardo, I was running from the new-architecture-benchmarks branch. I spoke to Nicola and I think the issue is with Android you can't switch the architectures at run time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants