• Register
0 votes
1.6k 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"

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
 
36.1k points

Related questions

1 vote
1 answer 207 views
207 views
Problem : I am beginner to react-navigation. Now I have a requirement to include the react-navigation to my exiting working code. So I have recently installed the required react-navigation in the existing React Native project. When I try to run my project I am encountering below error. ... ( <View style={styles.container}> <MyNavigator /> </View> ); } } Please let me know how can I fix this issue?
asked Mar 24 christian 5.7k points
0 votes
1 answer 85 views
85 views
Problem : I am learning React. I have written the below myrender method in my React Native code: myrender() { const {height, width} = Dimensions.get('window'); return ( <View style={styles.container}> <Image style={{ height:height, width:width, }} source ... But it is giving me below error &ldquo;React.Children.only expected to receive a single React element child&rdquo; How can I fix above error?
asked Mar 3 mphil 2.3k points
1 vote
1 answer 22 views
22 views
Problem: I have a python project located at C:\Users\ASUS\Documents\OPO\aoi.py But when I try to run this project: C:\Users\ASUS\Documents\OPO\aoi.py, line 55, in __init__ self.serv = socket(AF_INET,SOCK_STREAM) TypeError: 'module' object is not callable Why am I getting this type of error message. Can anyone explain me this thing.
asked Apr 4 LizzyM 5.7k points
3 votes
1 answer 65 views
65 views
Problem: Hello all, I am a novice in python programming. I have started learning python a few days back and I couldn&rsquo;t grasp may thing yet for sure. I have a chunk of python code that produces an error: typeerror: 'nonetype' object is not callable Within my program, ... , have a look into my codes and tell me where I am doing the wrong things. Thanks a lot for your positivity and kind help.
asked Apr 25 Gavin 15.2k points
2 votes
1 answer 29 views
29 views
Problem: What is TypeError: 'list' object is not callable error in python programming? Why does it happen? I was trying to working with a list in python. Suddenly, I got this error while I was trying run this below code list = [1, 2, 3] myrange = list(range(1, 10)) for num in list: if num in myrange: print(num, 'is between 1 and 10') Could any of you please shed some light on this?
asked Apr 7 Gavin 15.2k points