title: implementing sideBar/hamburger menu with react-native drawer
body: <p>I'm quite new to React-Native. 
  I'm trying to add sideBar/hamburger menu to my application with implementing 'react-native drawer' component. Firstly, I'm trying to add the example code from GitHub to my new test project just to understand how it works. I face with the error in the screen.</p>
  
  <p>It would make me really happy, If I get some help. Or can you advice me easier way to implement sideBar/hamburger menu to my project.</p>
  
  <pre><code>import Drawer from 'react-native-drawer';
  import React, {Component} from 'react';
  import SideBarContent from '../common/SideBarContent';
  import {Text,View} from 'react-native';
  
  class SideBar extends Component{
  
      closeControlPanel = () =&gt; {
          this._drawer.close()
      };
      openControlPanel = () =&gt; {
          this._drawer.open()
      };
  
      render()
      {
          const drawerStyles = {
              drawer: { shadowColor: '#000000', shadowOpacity: 0.8, shadowRadius: 3},
              main: {paddingLeft: 3},
          }
  
  
          return (
              &lt;Drawer
                  type="static"
                  content={&lt;SideBarContent/&gt;}
                  openDrawerOffset={100}
                  styles={drawerStyles}
                  tweenHandler={Drawer.tweenPresets.parallax}
              &gt;
                  &lt;View&gt;&lt;Text&gt;Drawer&lt;/Text&gt;&lt;/View&gt;
              &lt;/Drawer&gt;
          );
      }
  }
  </code></pre>
  
  <p>and here is my SideBarContent Component.</p>
  
  <pre><code>import React, {Component} from 'react';
  import {Text,View} from 'react-native';
  
  
  class SideBarContent extends Component{
      render()
      {
          return(
              &lt;View&gt;
                  &lt;Text&gt;Order History&lt;/Text&gt;
                  &lt;Text&gt;Account&lt;/Text&gt;
                  &lt;Text&gt;Basket&lt;/Text&gt;
                  &lt;Text&gt;About us&lt;/Text&gt;
              &lt;/View&gt;
          );
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/5ey5I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5ey5I.png" alt="enter image description here"></a></p>