I have this error:
Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
My code :
export default class Header_page extends Component {
render() {
return (
<Header>
<Left>
<Button transparent>
<Icon name='ios-menu' />
</Button>
</Left>
<Body>
<Title>{this.props.title}</Title>
</Body>
<Right>
<View>
{this.props.buttonRight}
</View>
</Right>
</Header>
);
}
}
Header_page.propTypes = {
title: PropTypes.string.isRequired,
buttonRight: PropTypes.func,
}
I don't understand what wrong thanks