Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. #20978
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
import React, {Component} from 'react';
import {Text} from 'react-native';
import {Container,Content} from 'native-base';
class HomeScreen extends Component {
render() {
return (
Home Screen
}
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
}
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 (
}
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);
The text was updated successfully, but these errors were encountered: