title: React Navigation upgrading 4.x to 5.x
body: <pre><code>const Stack = createStackNavigator(
      {
          Main: {
              screen: Main,
          },
          AddList: {
              screen: AddList,
          },
      },
      {
          headerMode: 'none',
          navigationOptions: {
            header: null,
          },
      },
  );
  </code></pre>
  
  <p>I changed my code  due to the new version for react navigation but I dont know how to implement the last part from the above code. Im not sure if i use Stack.Screen to implement headerMode and navigationoptions or Stack.navigator</p>
  
  <pre><code>const Stack = createStackNavigator();
  
  function RootStack() {
    return (
      &lt;Stack.Screen
        headerMode: 'none'
        options={{header: null}}
      &gt;
        &lt;Stack.Screen
          name="AddList"
          component={AddList}
        /&gt;
        &lt;Stack.Screen
          name="Profile"
          component={Profile}
        /&gt;
      &lt;/Stack.Screen&gt;
    );
  }
  </code></pre>