-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Codegen and adding listeners #48911
Comments
Tip Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.76.6. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Warning Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
|
Tip Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Update: a solution to issue 1 was to change in kotlin: removeListeners(count: Double) |
@fgrs, I would suggest you to leverage platforms like Stackoverflow or https://www.reactiflux.com/. This space is primarily for issues reporting. |
Note Not a bug report: This issue looks like a question. We are using GitHub issues exclusively to track bugs in React Native. GitHub may not be the ideal place to ask a question, but you can try asking over on Stack Overflow, or on Reactiflux. |
Description
I'm following this documentation https://reactnative.dev/docs/turbo-native-modules-introduction#1-declare-typed-specification to extend my native module with onError listener. My first issue is when I try to add new function interface in the Spec file
and update kotlin file with
the build fails due to 'count' being an Int.
My second issue is that I don't know how to subscribe to onError using New Architecture and the Spec file instead of importing NativeEventEmitter and NativeModules
I appreciate any help
Steps to reproduce
yarn android
React Native Version
0.76.3
Affected Platforms
Runtime - Android
Areas
TurboModule - The New Native Module System
Output of
npx react-native info
Stacktrace or Logs
Reproducer
sorry no link
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: