<p>Does anyone here have experience with shipping a Go binary with React Native? If so:</p>
<ol>
<li>How did you build and ship it? Any tips / troubles you ran into?</li>
<li>What method of communication from Js -> Go would be a good medium? Would I literally have to spin up a http server? Or perhaps call everything via subpoc? Thoughts?</li>
</ol>
<p>Appreciate any replies!</p>
<hr/>**评论:**<br/><br/>_out_of_mind_: <pre><blockquote>
<p>What method of communication from Js -> Go would be a good medium? Would I literally have to spin up a http server? Or perhaps call everything via subpoc? Thoughts?</p>
</blockquote>
<p>Websockets.</p></pre>pandemicsyn: <pre><p>Have you peek to see how Keybase handles it? - <a href="https://github.com/keybase/client/tree/master/shared/react-native" rel="nofollow">https://github.com/keybase/client/tree/master/shared/react-native</a></p></pre>slowratatoskr: <pre><p>take a look at <a href="https://github.com/minio/minio" rel="nofollow">minio</a>, they ship a <a href="https://github.com/minio/minio/tree/master/browser" rel="nofollow">file browser ui</a> with their binary.</p></pre>1Gijs: <pre><p>Find previous discussions here:</p>
<p><a href="https://www.reddit.com/r/golang/search?q=react+native&restrict_sr=on" rel="nofollow">https://www.reddit.com/r/golang/search?q=react+native&restrict_sr=on</a></p></pre>throwlikepollock: <pre><p>Appreciate the link to searching, but I've not yet come across my question.</p>
<p>I'm not asking how to run Go on Android/iOS, I'm specifically asking if anyone here has shipped a <em>binary</em>.</p>
<p>The methods I've seen for running Go with React Native effectively involve manually or semi-automatically creating a bridge in Java/ObjC and effectively building your Go application as a shared library.</p>
<p>But thanks for the search link.</p></pre>1Gijs: <pre><p>I think this is actually shipped as a pure Golang binary ?
<a href="https://github.com/robpike/ivy" rel="nofollow">https://github.com/robpike/ivy</a></p>
<p>React Native is a js based solution. So I do not think there is a way to make it Golang focussed instead and build it into a Golang binary ? But maybe I misunderstand your question ?</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传