aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--App.js24
-rw-r--r--app.json25
2 files changed, 19 insertions, 30 deletions
diff --git a/App.js b/App.js
index 09f879b..89934ec 100644
--- a/App.js
+++ b/App.js
@@ -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',
- },
-});
diff --git a/app.json b/app.json
index 027e28e..cc8d685 100644
--- a/app.json
+++ b/app.json
@@ -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": [
+ "**/*"
+ ]
}
}
+