title: react navigation v3 set screenProps through AppContainer
body: <p>I need to pass theme settings to navigation options of each screen. Settings are stored in redux. In old version I would write something like that:</p>
  
  <pre><code>const AppNavigator = StackNavigator({
    Home: { screen: MainList },
    Settings: { screen: Settings },
    NewEvent: { screen: NewEvent },
    Contacts: { screen: Contacts },
    Map: { screen: Map},
  })
  </code></pre>
  
  <p>And in render function...</p>
  
  <pre><code>&lt;AppNavigator 
     screenProps={{
       settings: this.props.settings,
       headerTintColor: '#ffffff'
     }}
  /&gt;
  </code></pre>
  
  <p>...where props.settings is a part of redux state. Wich is used inside navigationOptions</p>
  
  <pre><code>static navigationOptions = ({ navigation, screenProps }) =&gt; {
    let settings = screenProps.settings;
    let theme = settings? settings.theme: null;
  
    return {
      title: strings.account,
      headerTintColor: screenProps.headerTintColor,
      headerStyle: {backgroundColor: theme? theme.def.primaryColor: null}
    };
  };
  </code></pre>
  
  <p>But how should I do this now when I must wrap my Navigators with createAppContainer? Using navigation.setParams makes a visible delay in emulator so its not a proper solution for me... Keep in mind theme can be changed at any time!</p>