javascript 与 Android Studio 原生反应
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33826408/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
React-native with Android Studio
提问by Akshay
I'm totally newbie in React_Native
and trying to learn more about it. I tried this tutorialto learn how to work with Studio and React-Native
. But still I'm not getting it. How to code in studio and link it with js
. Did any body have any idea how to do it or tutorial links or references.
我完全是新手,React_Native
并试图了解更多信息。我尝试了本教程来学习如何使用 Studio 和React-Native
. 但我仍然没有得到它。如何在 Studio 中编码并将其与js
. 是否有任何机构知道如何去做或教程链接或参考。
回答by David Peicho
The tutorial seems to be pretty clear actually. What do you mean by
这个教程实际上似乎很清楚。你是什么意思
But still I'm not getting it. How to code in studio and link it with js
但我仍然没有得到它。如何在 Studio 中编码并将其与 js 链接
If you are talking about the way you link the JS, it is done through an activity, calling your js file. If you are asking where to put your JS files, the tutorial tells you to put them in your root, but you are free to do it in other way. If you ask how to edit your code through Android Studio, you can open the js file as any other file in order to code inside it.
如果您在谈论链接 JS 的方式,它是通过调用您的 js 文件的活动完成的。如果您询问将 JS 文件放在哪里,教程会告诉您将它们放在根目录中,但您可以通过其他方式自由地进行。如果您询问如何通过 Android Studio 编辑您的代码,您可以像打开任何其他文件一样打开 js 文件,以便在其中进行编码。
It is possible that my answer is not what you expected, in this case, try to be more precise about what you want us to explain to you, I did not really get it.
我的回答可能不是您所期望的,在这种情况下,请尝试更准确地说明您希望我们向您解释的内容,我并没有真正理解。
回答by Heloá
If you successfully installed what you need to start developing you can try the tutorial from the React Native docs
如果您成功安装了开始开发所需的内容,您可以尝试使用React Native 文档中的教程
In case you haven't finished the setup yet you can go through the installation on Getting Startedor start developing with the web application in the tutorial, you just need your browser. Then later you can produce an Android app with the code from that tutorial.
如果您还没有完成设置,您可以完成入门中的安装或开始使用教程中的 Web 应用程序进行开发,您只需要您的浏览器。然后,您可以使用该教程中的代码生成一个 Android 应用程序。