// App.js
...
const store = createStore(rootReducer, initialState);
export default function App() {
return (
<Provider store={store}>
<View style={styles.header}>
<Text style={styles.title}>Posts, Stories and Comments</Text>
</View>
<Settings />
</Provider>
);
}
const styles = StyleSheet.create({
header: {
backgroundColor: '#292929',
height: 46,
justifyContent: 'center',
paddingHorizontal: 18
},
title: {
color: '#fff',
fontSize: 20
}
});
view raw App.js hosted with ❤ by GitHub