title: How to add multiple divider component in a react navigation drawer
body: <p>I have a drawer navigation, what I wanted to happen is add divider separating the drawer icon and texts, but I get an error instead</p>
  <p>Error is: A navigator can only contain screen components...</p>
  <p>Here is my approach:</p>
  <pre><code>function DrawerNav(): React$Element&lt;{}&gt; {
    return (
      &lt;Drawer.Navigator
        drawerStyle={styles.drawerStyle}
        drawerContentOptions={{
          activeTintColor: 'white',
          inactiveTintColor: 'white',
          activeBackgroundColor: '#163E69',
          inactiveBackgroundColor: '#02152B'
        }}&gt;
  
        &lt;Drawer.Screen
          name=&quot;Dashboard&quot;
          component={Dashboard}
          options={{
            drawerIcon: () =&gt; (
              &lt;Image source = {&quot;assets/icons/dashboard.png&quot;} /&gt;
            ),
          }}
        /&gt;
  
       &lt;DrawerDivider label=&quot;Account&quot; /&gt;    // This is my divider component
  
       &lt;Drawer.Screen
          name=&quot;Profile&quot;
          component={Profile}
          options={{
            drawerIcon: () =&gt; (
              &lt;Image source={'assets/icons/profile.png'} /&gt;
            ),
          }}
        /&gt;
  
      &lt;DrawerDivider label=&quot;Actions&quot; /&gt;   // also my divider component
  
      &lt;Drawer.Screen
          name=&quot;Settings&quot;
          component={Settings}
          options={{
            drawerIcon: () =&gt; (
              &lt;Image source={'assets/icons/settings.png'} /&gt;
            ),
          }}
        /&gt;
  
      &lt;DrawerDivider label=&quot;Actions&quot; /&gt;   // also my divider component
  
      &lt;Drawer.Screen
          name=&quot;Logout&quot;
          component={Logout}
          options={{
            drawerIcon: () =&gt; (
              &lt;Image source={'assets/icons/logout.png'} /&gt;
            ),
          }}
        /&gt;
  
     &lt;/Drawer.Navigator&gt;
    );
  }
  </code></pre>
  <p>Any suggestions/help are appreciated.</p>