I need to have a callback function to listen for some events in native module and transfers data from native to javascript and I want to call this javascript function from native directly in React Native iOS app without sending events to NativeEventEmitter.
How to implement this with JSI (JavaScript Interface)?
                        
First, your function must be defined globally in javascript e.g.:
App.js
Then you should find and call it with React Native Runtime in native:
AppDelegate.mm
Outputs: