Browse Source

redux object

pull/1/head
Tim Glasgow 2 years ago
parent
commit
727226e558
  1. 9
      squarenotsquare/index.js

9
squarenotsquare/index.js

@ -1,18 +1,15 @@
/** import React from 'react';
* @format
*/
import {AppRegistry} from 'react-native'; import {AppRegistry} from 'react-native';
import {name as appName} from './app.json'; import {name as appName} from './app.json';
import SquareNotSquare from './Launcher'; import SquareNotSquare from './Launcher';
import configStore from './redux/CreateStore'; import configStore from './redux/CreateStore';
import { appInit } from './redux/actions/SystemActions'; import { appInit } from './redux/actions/SystemActions';
const squareStore = configStore(); const squareStore = configStore;
squareStore.dispatch(appInit()); squareStore.dispatch(appInit());
const ProppedContainer = () => { const ProppedContainer = () => {
return <SquareNotSquare {...{squareStore: squareStore}} />; return <SquareNotSquare {...{squareStore: squareStore}} />;
} };
AppRegistry.registerComponent(appName, () => ProppedContainer); AppRegistry.registerComponent(appName, () => ProppedContainer);
Loading…
Cancel
Save