Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
211 views
in Technique[技术] by (71.8m points)

swift - Replace native code of node module with custom implementation in project

I want to make some changes to the react-native-svg library. These changes include to make calls from the library to my code directly. To do that I want to move the native Swift/Obj-C code from the node modules folder of react-native-svg to my app project folder. This way I can call methods in my existing app from the files of react-native-svg. I already deactivated the auto-linking in react-native.config.js and moved all files to a subfolder called svg inside my iOS app folder. But after running the app, React throws an error, that it can't find RNSVGPath, which means, that it can't connect the react side of the svg library with the native code in my folder. So how do I connect those two sides of the puzzle?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...