diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-10-16 16:18:13 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-10-16 16:18:13 +0530 |
commit | f9af2a7f47dc23ff138a226b5b3cedf1f50d0776 (patch) | |
tree | f705215bc15ffd2380939c7e1943721552076e05 | |
parent | 492082e3b0467d15c0cee63a723b8f6172a5294f (diff) | |
download | mall-app-f9af2a7f47dc23ff138a226b5b3cedf1f50d0776.tar.gz mall-app-f9af2a7f47dc23ff138a226b5b3cedf1f50d0776.tar.bz2 mall-app-f9af2a7f47dc23ff138a226b5b3cedf1f50d0776.zip |
Initialize Expo project with App.js and config
-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": [ + "**/*" + ] } } + |