Skip to content

Instantly share code, notes, and snippets.

@SathinduGA
Created September 9, 2018 16:18
Show Gist options
  • Save SathinduGA/192745461ed3937886e66a66405969b8 to your computer and use it in GitHub Desktop.
Save SathinduGA/192745461ed3937886e66a66405969b8 to your computer and use it in GitHub Desktop.
Index
import React from 'react'; // Remember to import React
import { AppRegistry } from 'react-native';
import { Provider } from 'react-redux';
import {name as appname} from './app.json';
import Application from './src/app';
import configStore from './src/store/config_store';
const store = configStore();
const RNRedux = () => (
<Provider store={ store }>
<Application/>
</Provider>
);
AppRegistry.registerComponent (appname, () => RNRedux);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment