title: PubNub React-Native JS SDK Version 2 Stateful component
body: <p>Hi I'm trying to use the new pubnub react-native sdk in my stateful component but i keep getting:</p>
  <p>&quot;TypeError Object is not a constructor (evaluating new_pubnubReact.default')&quot;</p>
  <p>My component is structured like this :</p>
  <pre><code>    class testComponent extends Component{
         state={
          .....
         }
         pubnub = new PubNubReact({
        publishKey: &quot;***&quot;,
        subscribeKey: &quot;****&quot;
         });
   
  ... 
  
  }
  
    
  
  </code></pre>
  <p>How should i proceed to use the SDK without having to use a constructor and without having to switch the whole component into a functional component?</p>