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

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 317 views
317 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 267 views
267 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 30 views
30 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 6.1k points