I had a Header component that I used as a static appbar in React Native. Now I'm trying to include a StackNavigator to be easier to manage the transitions between screens.
My problem is that I can't include my Header component in the StackNavigator header. My current code and result are shown below:
const APPBAR_HEIGHT = Platform.OS === 'ios' ? 44 : 56;
const GiftNavigator = StackNavigator(
{
All: {
screen: GiftListSection,
navigationOptions: {
tabBarLabel: 'All',
}
},
Reclaim: {
screen: GiftReclaimSection,
navigationOptions: {
tabBarLabel: 'Reclaim',
}
}
}, {
headerMode: 'float',
header: (
<View style={{ height: APPBAR_HEIGHT }}>
<Header />
</View>
)
});
Note that the Header is not loaded. It is just a blank space. How can I load my Header component to the StackNavigator header? If I load my own Header, will it contain the back button from the default Navigator header?
