/**
 * @format
 */

import { AppRegistry } from 'react-native';
import React from 'react';
import { Provider } from 'react-redux';

import App from './app/App';
import { name as appName } from './app.json';
import { store } from './app/store/index.js';

const connectedApp = () => {
    return (
        <Provider store={store}>
            <App />
        </Provider>
    );
};

AppRegistry.registerComponent(appName, () => connectedApp);
//AppRegistry.registerHeadlessTask('AUCTION_UPDATES', () => connectedApp);
