How to pass navigator prop inside render header

How to pass navigator prop inside render header of ExNavigation because i want push new component when click on view that inside navheader . Please guys help me to resolve problem.
there is any way to solve the problem.

This is mine renderHeader piece of code:

_renderHeader = () => {
console.log(this.props);
return <View style={{ height: metrics.DEVICE_HEIGHT, width: IMAGE_WIDTH }}>

;
};

render() {
return (

<DrawerNavigationItem
id=“products”
selectedStyle={styles.selectedItemStyle}
renderTitle={isSelected => this._renderTitle(“Home”, isSelected)}>
<StackNavigation
id=“products”
defaultRouteConfig={{ navigationBar: { backgroundColor: “white” } }}
initialRoute={Router.getRoute(“products”, {
magentoData: this.props.magentoData,
bannerData: this.props.bannerData
})}
/>


);
}

Please take look into my piece of code…

hi @kulbhushansingh, if its not parent to child communication, you should consider using react State instead.

1 Like

thanks , I got the solution mam…
Mam i have little bit more query . I want to implement scrollable tabs with text please suggest me which dependency is better in expo. To make tabs fully customized for both ios and android…
Thanks in advance.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.