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 (
}
}
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'
}
};