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

Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. #20978

Closed
rakeshrocky6 opened this issue Sep 5, 2018 · 2 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@rakeshrocky6
Copy link

import React, {Component} from 'react';
import {Text} from 'react-native';
import {Container,Content} from 'native-base';

class HomeScreen extends Component {
render() {
return (


Home Screen

        </Container>
    );
}

}

export default HomeScreen ;

import React, {Component} from 'react';
import {Text} from 'react-native';
import {Container,Content} from 'native-base';

class SettingScreen extends Component {
render() {
return (


Setting Screen

        </Container>
    );
}

}

export default SettingScreen ;

import React, {Component} from 'react';
import HomeScreen from "./src/HomeScreen";
import SettingScreen from "./src/SettingScreen";
import {DrawerNavigator} from 'react-navigation';

export default class App extends Component {
render() {
return (

        <MyDrawer/>
        
    );
}

}
const MyDrawer=DrawerNavigator({
Home:{
screen:HomeScreen
},
Setting:{
screen: SettingScreen
}
});

/** @Format */

import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';

AppRegistry.registerComponent(appName, () => App);

@rakeshrocky6
Copy link
Author

please let me get out of this issue.

@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library.

If you'd like to propose a change or discuss a feature request, there is a repository dedicated to Discussions and Proposals you may use for this purpose.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. 📋No Template labels Sep 5, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Sep 5, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants