react-nativenative-base

Module AppRegistry is not registered callable module (calling runApplication)


I am using native base for making app in react-native. I am new to both things. When I run the app It gives me this error:

enter image description here

Here is my code:

export default class Point extends Component {

    render() {
        return (
            <Container>
                <Header>
                    <Left>
                        <Button transparent>
                            <Icon name='menu' />
                        </Button>
                    </Left>
                    <Body>
                        <Title>Header</Title>
                    </Body>
                    <Right />
                </Header>
            </Container>
        );
    }
}

Here is the screenshot of my versions

enter image description here

and nativebase version is "native-base": "^2.1.2"


Solution

  • I was using native base for my app here is link native base

    and you can see there is no app registry like this

     AppRegistry.registerComponent('Point', () => Point) 
    

    but i have to do this to run my app