用于开发 React-Native JSI 本机模块的 IDE 设置
JSI 即将在本机模块开发中变得相当流行,但有关如何开始使用它的信息仍然很少。
我浪费更多时间的一件事是设置一个 IDE 来通过 C++ 方面获得 IntelliSense/代码完成。 我有 CLion 和 Android studio,但我根本找不到让它工作的方法。 Android studio 似乎只是忽略 android/ 文件夹内的 CMakeLists.txt 文件。在 clion 上,加载 CMakeLists.txt 文件时,它只是找不到所需的一半变量和路径,如果我通过设置手动设置变量,它会不断给出错误。
我对 C++ 开发相当陌生,但到目前为止我设法设置了一些 C++ 项目,但我不知道如何为 RN 做到这一点。
JSI is about to become quite popular in native module development but there's still very little information on how to get started with it.
One of the things I'm wasting more of my time on is setting up an IDE to get IntelliSense / code completion with the c++ side of things.
I have both CLion and Android studio and i couldn't figure out a way to make it work at all. Android studio seems to just ignore the CMakeLists.txt file inside the android/ folder. On clion when loading the CMakeLists.txt file it just can't find half the variables and paths needed and if i manually set the variables via the settings it keeps giving errors on errors.
I'm pretty new to c++ development but i managed to setup a few c++ projects so far, but i have no idea how to do this for RN.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上,您需要两个 IDE,一个用于 React-Native 代码,另一个用于 C++ 代码。
根据我的经验,
Qt Creator
IDE 对CMakeLists.txt
作为项目提供了最好的支持,但请尝试更新的 MSVC 版本(他们最近添加了支持)。此外,VS Code 也非常适合 React-Native。
Basically, you need two IDEs, one for react-native's codes, and one for C++ code.
In my experience,
Qt Creator
IDE had best support forCMakeLists.txt
as project, but give newer MSVC versions a try (they added support recently).Also, VS Code was good for react-native.