remake app ohome setup /notworking
This commit is contained in:
53
App.js
53
App.js
@@ -1,21 +1,42 @@
|
||||
import { StatusBar } from 'expo-status-bar';
|
||||
import React from 'react';
|
||||
import { StyleSheet, Text, View } from 'react-native';
|
||||
// import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text>Open up App.js to start working on your app!</Text>
|
||||
<StatusBar style="auto" />
|
||||
</View>
|
||||
);
|
||||
import App from './src/App';
|
||||
|
||||
// //styles
|
||||
import { ThemeProvider } from 'styled-components'
|
||||
|
||||
// import GlobalStyle from './src/styles/globalStyles'
|
||||
import Theme from './src/styles/theme'
|
||||
// //redux
|
||||
import { Provider } from 'react-redux'
|
||||
import store from './src/redux/store';
|
||||
|
||||
import { fetchAll } from './src/utils'
|
||||
import { StatusBar } from 'expo-status-bar';
|
||||
import { StyleSheet, View } from 'react-native';
|
||||
|
||||
|
||||
fetchAll()
|
||||
|
||||
|
||||
export default function Index() {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Provider store={store}>
|
||||
<ThemeProvider theme={Theme}>
|
||||
{/* <GlobalStyle /> */}
|
||||
<App />
|
||||
<StatusBar style="auto" />
|
||||
</ThemeProvider>
|
||||
</Provider>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: '#fff',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
},
|
||||
});
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: '#fff',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user