42 lines
864 B
JavaScript
42 lines
864 B
JavaScript
import React from 'react';
|
|
// import 'bootstrap/dist/css/bootstrap.min.css';
|
|
|
|
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',
|
|
},
|
|
}); |