How can I call mattermost react jsx function from native swift code in iOS app

I am using iOS mattermost, I have intergated Google Speech API into mattermost ios app, now, I can recording the voice and send it to google, after getting text result, I don’t know how to post this message to mattermost server, just like user enter something in input field and click send button.
In another words, is there any way to communicate between swift code and jsx code?

Any Sugestion? thanks

There isn’t any mechanism in our iOS app todo this. You might look at stringByEvaluatingJavaScriptFromString() in the native WebView