Skip to content

Super expression must either be null or a function, not undefined #2

@ghost

Description

Hey, I am getting the following error

Super expression must either be null or a function, not undefined

App.js

import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';

import Ball from './src/Ball';

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

  </View>
);

}
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});

Ball.js

import React, { Component } from 'react-native';
import { View } from 'react-native';

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

);
}
}

const styles = {
ball: {
height: 60,
width: 60,
borderRadius: 30,
borderWidth: 30,
borderColor: 'black'
}
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions