user7784591
user7784591

Reputation:

How to render common header and footer in react-native-router-flux?

I want to add header and footer in all pages like below.

write code once then how render it in various pages?

enter image description here

Upvotes: 1

Views: 1061

Answers (1)

Khalil Khalaf
Khalil Khalaf

Reputation: 9397

The one at the bottom is called TabNavigator, and the one above is called StackNavigator. Once you declare a navigator as one of them, that navigator can be accessed from anywhere and be shown everywhere. Both can be found and imported from `react-navigation'.

Upvotes: 1

Related Questions