Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created May 8, 2020 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallmurphy/5bdb9a39e5b360fae7bc19a0e83798ba to your computer and use it in GitHub Desktop.
Save marshallmurphy/5bdb9a39e5b360fae7bc19a0e83798ba to your computer and use it in GitHub Desktop.
// App.js
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
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}>
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
</View>
</Provider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment