Skip to content

Instantly share code, notes, and snippets.

@sahoosunilkumar
Created May 13, 2019 13:38
Show Gist options
  • Save sahoosunilkumar/743a79f9769a5907cacbf37be45a6a81 to your computer and use it in GitHub Desktop.
Save sahoosunilkumar/743a79f9769a5907cacbf37be45a6a81 to your computer and use it in GitHub Desktop.
import { AppRegistry } from "react-native";
import React from "react";
import App from "./App";
import { name as appName } from "./app.json";
import { Provider } from "react-redux";
import configureStore from "./redux/stores/store";
const store = configureStore();
const RNRedux = () => (
<Provider store={store}>
<App />
</Provider>
);
AppRegistry.registerComponent(appName, () => RNRedux);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment