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:
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
and nativebase version is "native-base": "^2.1.2"
Best Answer
Just kill all node process and start npm server and run application:
Step1: run command
killall -9 node
Step2: run command
npm start --reset-cache
Step3: run command
react-native run-ios
ORreact-native run-android