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

6 5 3
7,540 points

Please log in or register to answer this question.

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
 
9 7 4
38,600 points

Related questions

1 vote
1 answer 436 views
436 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, 2020 christian 5.7k points
0 votes
1 answer 480 views
480 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, 2020 mphil 2.3k points
0 votes
1 answer 25 views
25 views
Problem Hi, On the very first line where i call the benedict() class, an exception is thrown: Traceback (most recent call last): File "benedict-test.py", line 18, in <module> d = benedict() TypeError: 'module' object is not callable Need help fixing this.
asked Oct 28, 2020 hashq 1.1k points
1 vote
1 answer 43 views
43 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, 2020 LizzyM 6.1k points
0 votes
6 answers 30 views
30 views
I need some React Native interview questions. It will be great if you can provide different categories. Thank You!
asked Dec 1, 2020 Lucky Guy 930 points
0 votes
1 answer 76 views
76 views
Problem: I have very recently installed Angular-Messages on my Ionic V1 App but because of below error I am unable to make it work. Please find below the error related to Angular: "Uncaught TypeError: l.module(...).info is not a function at angular-messages.js:267 at angular-messages.js:6. ... .6.4",     "angular-messages": "~1.6.4" } But I am still facing the same angular error. How can I fix it?
asked Aug 6, 2020 Raphael Pacheco 4.9k points
1 vote
1 answer 32 views
32 views
I tried to use is_authenticated() in a view, but got the error `TypeError: 'bool' object is not callable. How do I fix it? This is my code def func_name(): if current_user.is_authenticated() \ and not current_user.confirmed \ and request.endpoint[:5] != ' ... ('auth.unconfirmed')) In some cases a class might implement __call__ function which you can call an object too, then it will be callable.
asked Nov 8, 2020 kevin muturi 220 points
4 votes
1 answer 109 views
109 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, 2020 Gavin 15.3k points