简体   繁体   English

如何重新编译反应原生节点依赖?

[英]How to recompile the react native node dependency?

I have a react native android component as an npm dependency to my react native project.我有一个 react native android 组件作为我的 react native 项目的 npm 依赖项。 It is autolinked during react-native run-android.它在 react-native run-android 期间自动链接。 I have made changes to the dependency java files(node_modules/dependency/android/com/z/y/x/Foo.java).我对依赖项 java 文件(node_modules/dependency/android/com/z/y/x/Foo.java)进行了更改。 How to recompile the project inorder to get the changes?如何重新编译项目以获得更改?

From your project folder cd android &&./gradlew clean .从您的项目文件夹cd android &&./gradlew clean Note that what you doing should only be used for prototyping, as your changes in node_modules are not going into version control system and are also being erased on npm install请注意,您所做的只能用于原型设计,因为您在node_modules中的更改不会进入版本控制系统,并且也会在npm install中被删除

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM