Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created May 8, 2020 21:43
Show Gist options
  • Save marshallmurphy/52614c8b6fb20f2afa18b55efb659a62 to your computer and use it in GitHub Desktop.
Save marshallmurphy/52614c8b6fb20f2afa18b55efb659a62 to your computer and use it in GitHub Desktop.
// App.js
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import Settings from './screens/Settings';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import rootReducer from './reducers';
const initialState = {
settings: []
}
const store = createStore(rootReducer, initialState);
export default function App() {
return (
<Provider store={store}>
<Settings />
</Provider>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment