title: React Native TypeError store.getState is not a function
body: <p>Hi guys I'm trying to make my code more readable and pragmmatic.</p>
  
  <p>Using redux-saga in React Native I'm getting some issues.</p>
  
  <p>When I try to load the app I get the error:</p>
  
  <blockquote>
    <p>TypeError: store.getState is not a function</p>
    
    <p>This error is located at:</p>
  
  <pre><code>in Connect(Reprov) (at App.js:17)
  in RCTView (at View.js:44)
  in Provider (at App.js:14)
  in App (at renderApplication.js:34)
  in RCTView (at View.js:44)
  in RCTView (at View.js:44)
  in AppContainer (at renderApplication.js:33)
  </code></pre>
  </blockquote>
  
  <p><strong>src/store/configureStore.js</strong></p>
  
  <hr>
  
  <pre><code>import {createStore, applyMiddleware} from 'redux'
  import createSagaMiddleware from 'redux-saga';
  import rootReducer from '../reducers';
  import rootSaga from '../sagas';
  
  export default function () {
    const sagaMiddleware = createSagaMiddleware();
    const store = createStore(
      rootReducer,
      applyMiddleware(sagaMiddleware)
    );
  
    sagaMiddleware.run(rootSaga)
  
    return store;
  }
  </code></pre>
  
  <h2><strong>src/App.js</strong></h2>
  
  <pre><code>import React, {Component} from 'react'
  import { View } from 'react-native';
  import { Provider } from 'react-redux';
  import AppNavigation from './Navigation';
  import store from './store/configureStore';
  import Reproof from './screens/Reprov';
  import Approval from './screens/Aprov';
  import PushNotificationController from './components/Push';
  
  class App extends Component {
    render() {
      return (
        &lt;Provider store={store}&gt;
          &lt;View style={{ flex: 1 }}&gt;
            &lt;AppNavigation /&gt;
            &lt;Reproof /&gt;
            &lt;Approval /&gt;
            &lt;PushNotificationController /&gt;
          &lt;/View&gt;
        &lt;/Provider&gt;
      )
    }
  }
  
  export default App;
  </code></pre>
  
  <p>I don't know what I'm doing wrong...</p>