UNPKG

react-native-creolestructure

Version:

React-native project structure from creole studios

17 lines (15 loc) 422 B
import React from 'react'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from './store'; import ReduxNavigation from './ReduxNavigation' import thunk from 'redux-thunk'; const store = createStore(rootReducer, applyMiddleware(thunk)) const Root = () => { return ( <Provider store={store}> <ReduxNavigation /> </Provider> ) } export default Root;