• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
31 views

Problem :

I am trying to use the native base for making app in the react-native. I am very new to both things. When I try to run the app It gives me below error:

“Module appregistry is not a registered callable module (calling runapplication)”Below is my code for your reference :

​


export default class MyPoint extends Component {

   render() {

        return (

            <Container>

                <Header>

                    <Left>

                        <Button transparent>

                            <Icon name='Mymenu' />

                        </Button>

                    </Left>

                    <Body>

                        <Title>Header</Title>

                    </Body>

                    <Right/>

                </Header>

            </Container>

        );

    }

}



​

My native-base version is as follows "native-base": "^2.1.2"

by (7.5k points)  

1 Answer

0 votes

Solution :

I had also faced the similar issue in the recent past. I did lot of research on it and found the solution on it. This is the very common problem with the people getting started.

You need to just kill all the node process and start your npm server and run application with the use of below commands :

Step 1: Run the command as killall -9 node

For the windows users, need to run: taskkill /im node.exe

Run the taskkill /f /im node.exe if your process still persists.

Step 2: run the command as npm start --reset-cache

Step 3: run the command as react-native run-ios OR react-native run-android

OR

Closing your current Metro Bundler and just restarting by resetting your cache worked for me as below :

npm start -- --reset-cache
 
by (34.3k points)  
...