title: How to set NavigationOptions of a parent?
body: <p>I have nested navigator in my app. I would like my header bar to be set on the root of the navigaton, so there will be a mutual header bar to all screens in my application.</p>
  
  <p>my index.js is:</p>
  
  <pre><code>const StackOpportunityNavigator = createStackNavigator(
  {
    MainOpportunity: OpportunityScreen,
    ClientScreen: ClientScreen,
    BusinessMapLocation: BusinessMapLocation,
    LoginScreen: LoginScreen
  },
  {
    initialRouteName: 'MainOpportunity',
    headerMode: 'none',
    transitionConfig: () =&gt; fromLeft(600),    
   }
  );
  
  const DrawerNavigationOptions = createDrawerNavigator(
  {
     OpportunityStack: { screen: StackOpportunityNavigator },
     History: HistoryScreen,
     MyChances: MyChancesScreen,
     Info: InfoScreen
  },
  {
    contentComponent: (props) =&gt; &lt;SideBar {...props} /&gt;,
    drawerPosition: 'right',
    transitionConfig: () =&gt; fromLeft(600),
   }
  );
  
  const LoginNavigator = createStackNavigator(
  {
     LoadingScreen: LoadingScreen,
     LoginScreen: LoginScreen,
     DrawerNavigator: DrawerNavigationOptions
  },
  {
   transitionConfig: () =&gt; fromLeft(600),
   headerMode: 'screen',
   navigationOptions: {
     headerStyle: {
       backgroundColor: Colors.primary
     },
     headerTintColor: '#fff',
     headerTitleStyle: {
       fontWeight: 'normal',
       fontSize: 18
     }
    }
   }
  );
  
  export default LoginNavigator;
  </code></pre>
  
  <p>In every screen in my application i have this code:</p>
  
  <pre><code>static navigationOptions = {
        header: &lt;HeaderBar title={'currentScreenTitle'} /&gt;
    };
  </code></pre>
  
  <p>However it works from 'LoginScreen' screen and all the others from 'LoginNavigator', but not from any other screen like 'History'.</p>
  
  <p>How can i still control the  navigation options from other screen like 'History' and set the title, if my navigation header bar is in the most root navigator?</p>
  
  <p>Hope you understand my question.
  Really hope to for your answers as fast as possible.
  Thanks guys!</p>