Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No manager class found for view with module name "RCTText" #537

Closed
meetwudi opened this issue Mar 31, 2015 · 3 comments
Closed

No manager class found for view with module name "RCTText" #537

meetwudi opened this issue Mar 31, 2015 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@meetwudi
Copy link
Contributor

I am trying to embed React Native app into a existing iOS App. I initialized one RCTRootView and add it as a subview to a UIView.

NSString *urlString = @"http://localhost:8081/index.ios.bundle";
NSURL *jsCodeLocation = [NSURL URLWithString:urlString];
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                    moduleName: @"SimpleApp"
                                                 launchOptions:nil];

[self.reactView addSubview:rootView];

And the view in JS

var React = require('react-native');

var {
  Text,
  View
} = React;

var styles = React.StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: 'red'
  }
});

class SimpleApp extends React.Component {
  render() {
    return <View style={styles.container}>
        <Text>This is a simple application.</Text>
      </View>;
  }
}

React.AppRegistry.registerComponent('SimpleApp', () => SimpleApp);

But then I got

[RCTLog][tid:0x7fe5e2accc20][RCTUIManager.m:710]>No manager class found for view with module name "RCTText"
[RCTLog][tid:0x7fe5e2accc20][RCTUIManager.m:710]>No manager class found for view with module name "RCTRawText"

No error message for RCTView, but only RCTText and RCTRawText.

Any clue what's going on? Thanks :)

@mudetroit
Copy link

Are you using Cocoapods to include React? If so you need to include React/RCTText

@meetwudi
Copy link
Contributor Author

meetwudi commented Apr 1, 2015

@mudetroit Yeah, now it works! Thanks!

@meetwudi meetwudi closed this as completed Apr 1, 2015
@fatuhoku
Copy link

Why isn't RCTText subpod included when we specify pod 'React'?

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants