How can I add a Javascript/ Typescript function call to RNW from a native module. #14423
Answered bychrisglein
imbibeks826 asked this question in Q&A
-
I have a function in RNW side and want to trigger that function whenever a event happened in native side. I'm able to capture event change in native side, how to call the javascript function available in RNW side. Your help and comments are appreciated. |
BetaWas this translation helpful?Give feedback.
Answered by chrisglein Mar 13, 2025
Replies: 2 comments
-
Maybe not as discoverable as it should be, but the default native module example here covers how to build a native module event, which is native code calling back up to JS. Does that meet your needs? |
BetaWas this translation helpful?Give feedback.
0 replies
Answer selected bychrisglein
-
Thanks for the info, I'll check on this. |
BetaWas this translation helpful?Give feedback.
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Maybe not as discoverable as it should be, but the default native module example here covers how to build a native module event, which is native code calling back up to JS. Does that meet your needs?