React Native, TypeError: Super expression must either be null or a function

Hi, I'm trying to run my react native app in my physical device but getting that error, can anyone please help me? I'm new in react native

TypeError: Super expression must either be null or a function
[Mon Oct 26 2020 10:37:19.635]  ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
[Mon Oct 26 2020 10:37:19.636]  ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
[Mon Oct 26 2020 10:37:19.637]  ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

I'm just rendering a text hello

import React, {Component} from 'react';
import {View, Text} from 'react-native';
import SplashScreen from 'react-native-splash-screen';

class App extends Component {
  componentDidMount() {
    SplashScreen.hide();
  }

  render() {
    return (
      <View>
        <Text>Hello</Text>
      </View>
    );
  }
}

export default App;

My index.js

import {AppRegistry} from 'react-native';
import App from './App';

AppRegistry.registerComponent('gopro', () => App);

Answers 0

Related Articles