看到官网:
Integration With Existing Apps
(和翻译的:集成到现有原生应用 – React Native 中文网)
好像说是:
原先的OC项目中,需要用到Cocoapods才行
“CocoaPods is a package management tool for iOS and macOS development. We use it to add the actual React Native framework code locally into your current project.”
考虑到Carthage更方便
所以想去看看:
把ReactNative iOS集成到已有项目中,能否用Carthage
react native ios integrated existing objective-c project
Integrating React Native into an Existing App (iOS)
里面有详细的步骤介绍,如何集成到swift或OC
React Native Tutorial: Integrating in an Existing App
与现有的应用程序集成 – React Native 官方文档中文版 – 极客学院Wiki
How to Port Your Native Modules into a React Native Environment | Branch Blog
Integrating React Native into an existing Swift project – τarka λabs
react native ios integrated existing use carthage
Integrate RNN into a native IOS swift project · Issue #813 · wix/react-native-navigation
Import React Native dependency to existing iOS app manually – Stack Overflow
No Carthage support · Issue #13835 · facebook/react-native
有人遇到同样问题,但是官网没回复,也暂时不支持。。。
Importing RN to existing Project without CocoaPods:reactnative
Adding React Native to Existing iOS Project Without CocoaPods