title: failed to wrap stack navigator inside redux-provider in react-native
body: <p>following is the code to wrap stack navigator inside a redux provider</p>
  
  <pre><code>import React, { Component } from 'react';
  import WelcomePage from './components/welcomePage';
  import Register from './components/register';
  import { StackNavigator } from 'react-navigation'
  import {
    Platform,
    StyleSheet,
    Text,
    View
  } from 'react-native';
  import { Provider,connect } from 'react-redux';
  import { store } from './store/store';
  
  const mapStateToProps=state =&gt; {
      return state;
  }
  const mapDispatchToProps=dispatch =&gt; {
      return bindActionCreators(Actions, dispatch);
  }
  
  const handleSubmit=values=&gt; {
    console.log(values);
  }
  const Navigationapp=StackNavigator({welcome:{screen:WelcomePage},register:{screen:props=&gt;&lt;Register {...props} handleSubmit={handleSubmit}&gt;}});
  const Container = connect(mapStateToProps,mapDispatchToProps)(Navigationapp);
  export default class App extends Component{
      render(){
          return (&lt;Provider store={store}&gt;
                       &lt;Container/&gt;
              &lt;/Provider&gt;)
      }
  };
  </code></pre>
  
  <p>but it shows following error</p>
  
  <pre><code>error: bundling failed: SyntaxError in C:\wamp64\www\rnativeTestProj\App.js: C:/wamp64/www/rnativeTestProj/App.js: Unexpected token, expected } (42:12)
    40 | const Container = connect(mapStateToProps,mapDispatchToProps)(Navigationapp);
    41 | export default class App extends Component{
  &gt; 42 |     render(){
       |             ^
    43 |         return (&lt;Provider store={store}&gt;
    44 |                      &lt;Container/&gt;
    45 |             &lt;/Provider&gt;)
   BUNDLE  [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1), failed.
  </code></pre>
  
  <p>what am I missing?is it a correct way to wrap stack navigator inside a redux-provider?</p>