Repository navigation
Closed
Labels
Resolution: LockedThis issue was locked by the bot.
Description
Hi there! Given that this is my first React Native issue, let me just say, “awesome work!” This is an impressive project, and I especially appreciate the team open sourcing it.
I’m up against an issue using React Native when brought in as a CocoaPods dependency.
At first, the structure looks sound. My Pods/React directory includes everything and I’m able to compile an app that constructs a simple RCTRootView, but upon serving up my bundle JS file simple components seem to be throwing errors:
RCTJSLog> "Running application "ReactCocoaPodsDemo" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTRawText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTRawText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTRawText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTRawText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTText"
[RCTLog][tid:0x7f8528c53570][RCTUIManager.m:710]>No manager class found for view with module name "RCTRawText"
I’ve posted a sample repo with steps to recreate the issue:
git clone https://github.com/andrewsardone/ReactCocoaPodsDemocd ReactCocoaPodsDemo && open ReactCocoaPodsDemo.xcworkspace- In a shell, run
script/serverand leave it running - In Xcode,
⌘Rto build and run - Note that no
<Text>components are rendered, and Xcode’s console is noting the above warnings
I’m at a loss on how to move forward, so any help would be appreciated.
Thanks!
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.
Activity
Add link to react-native issue
ide commentedon Mar 30, 2015
You could try to pull in #508 and #285 and optionally #261. The current master branch doesn't handle cocoapods very well but once something like a scalable module system (#235) is built out things should get a lot better.
andrewsardone commentedon Mar 31, 2015
Thanks for the reply, @ide! I’ll take a look at those issues, but actually my problem was much simpler: I simply didn’t include the
React/RCTTextsubspec dependency in myPodfile. This was pointed out to me by @mudetroit: andrewsardone/ReactCocoaPodsDemo#1.I’m excited to see development of a broader module system (#235), so I’ll catch up on that thread. But frankly, right now this CocoaPods setup doesn’t seem too bad!
Closing the ticket – cheers!