import * as React from 'react' ; import * as ReactDOM from 'react-dom' ; import { Provider } from 'react-redux' ; import "babel-polyfill" ; import configureStore from './configureStore' ; import App from './Components/App' ; const initialState = { } ; const store = configureStore ( initialState || { } ) ; class Main extends React . Component < { } , { } > { public render ( ) { return ( < Provider store = { store } > < App /> < /Provider>); } } const startApp = ( ) => { document . addEventListener ( 'touchmove' , e => e . preventDefault ( ) , false ) ; ReactDOM . render ( < Main />, document.getElementById('app')); } ; const deviceReady = ( ) => { setTimeout ( ( ) => { navigator . splashscreen . hide ( ) ; startApp ( ) ; } , 2000 ) ; } ; if ( window . cordova ) { document . addEventListener ( 'deviceready' , deviceReady , false ) ; } else { startApp ( ) ; }