import 'react-native-browser-polyfill';
import App from './app/App.react';
import Component from 'react-pure-render/component';
import React, { AppRegistry, Platform } from 'react-native';
import config from './config';
import configureStore from '../common/configureStore';
import createEngine from 'redux-storage-engine-reactnativeasyncstorage';
import messages from './messages';
import { Provider } from 'react-redux';

require('../server/intl/polyfillLocales')(self, config.locales);

export default function index() {
  const initialState = {
    config: {
      appName: config.appName,
      firebaseUrl: config.firebaseUrl
    },
    intl: {
      // TODO: Detect native current locale.
      currentLocale: config.defaultLocale,
      locales: config.locales,
      messages
    },
    device: {
      platform: Platform.OS
    }
  };
  const store = configureStore({ createEngine, initialState });

  class Root extends Component {
    render() {
      return (
        <Provider store={store}>
          <App />
        </Provider>
      );
    }
  }

  AppRegistry.registerComponent('Este', () => Root);
}

import 'react-native-browser-polyfill';
import App from './app/App.react';
import Component from 'react-pure-render/component';
import React, { AppRegistry, Platform } from 'react-native';
import config from './config';
import configureStore from '../common/configureStore';
import createEngine from 'redux-storage-engine-reactnativeasyncstorage';
import messages from './messages';
import { Provider } from 'react-redux';

require('../server/intl/polyfillLocales')(self, config.locales);

export default function index() {
  const initialState = {
    config: {
      appName: config.appName,
      firebaseUrl: config.firebaseUrl
    },
    intl: {
      // TODO: Detect native current locale.
      currentLocale: config.defaultLocale,
      initialNow: Date.now(),
      locales: config.locales,
      messages
    },
    device: {
      platform: Platform.OS
    }
  };
  const store = configureStore({ createEngine, initialState });

  class Root extends Component {
    render() {
      return (
        <Provider store={store}>
          <App />
        </Provider>
      );
    }
  }

  AppRegistry.registerComponent('Este', () => Root);
}

Add missing initialNow for native
Add missing initialNow for native
