-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
How to send event from iOS to javascript #8891
Comments
@facebook-github-bot stack-overflow |
Hey @Arthraim and thanks for posting this! @charpeni tells me this issue looks like a question that would be best asked on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. Will close this as this is really a question that should be asked on SO. |
I have the same problem. Have you resolve the problem? @Arthraim |
Thank you. I have resolve the problem. The issue seems to same this |
I'm doing something Async in iOS app, it's triggered by javascript. When it's done (somewhere separated in app), I want to let javascript know.
My current solution is a native module inherited from
RCTEventEmitter
, has a method likeThen when my Async job's done, I call this method like
And obviously,
emitter.bridge
is nil and app crashed because of assertbridge != nil
. So how am I get the bridge and let*emitter
(the instance) know. Or how can I get the right instance with bridge initialized?Thanks in advance!
The text was updated successfully, but these errors were encountered: