How to pass navigator prop inside render header

#1

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…

0 Likes

#2

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

1 Like

#3

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.

0 Likes

closed #4

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

0 Likes