diff options
-rw-r--r-- | App.js | 24 | ||||
-rw-r--r-- | app.json | 25 |
2 files changed, 19 insertions, 30 deletions
@@ -1,20 +1,14 @@ -import { StatusBar } from 'expo-status-bar'; -import { StyleSheet, Text, View } from 'react-native'; +import React form 'react'; +import { NavigationContainer } from '@react-navigation/native' +import AppNavigator from './src/navigation/AppNavigator.js' +import { CartProvider } from './src/context/CartContext.js' 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> + <CartProvider> + <NavigationContainer> + <AppNavigator /> + </NavigationContainer> + </CartProvider> ); } - -const styles = StyleSheet.create({ - container: { - flex: 1, - backgroundColor: '#fff', - alignItems: 'center', - justifyContent: 'center', - }, -}); @@ -1,27 +1,22 @@ { "expo": { - "name": "Mallapp", - "slug": "Mallapp", + "name": "MailApp", + "slug": "mail-app", "version": "1.0.0", "orientation": "portrait", + "platforms": ["ios", "android"], "icon": "./assets/icon.png", - "userInterfaceStyle": "light", "splash": { - "image": "./assets/splash.png", + "image": "./assets/icon.png", "resizeMode": "contain", "backgroundColor": "#ffffff" }, - "ios": { - "supportsTablet": true + "updates": { + "fallbackToCacheTimeout": 0 }, - "android": { - "adaptiveIcon": { - "foregroundImage": "./assets/adaptive-icon.png", - "backgroundColor": "#ffffff" - } - }, - "web": { - "favicon": "./assets/favicon.png" - } + "assetBundlePatterns": [ + "**/*" + ] } } + |