aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-10-16 17:25:24 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-10-16 17:25:24 +0530
commitd7cff4d9e51b1a8e795bd66f7f6696664bd66787 (patch)
treeb21eca9116787af9e1b828e01a02e93f523776ec
parent2ffdb4d5697295443f926983c33b6ca4aa44bab6 (diff)
downloadmall-app-d7cff4d9e51b1a8e795bd66f7f6696664bd66787.tar.gz
mall-app-d7cff4d9e51b1a8e795bd66f7f6696664bd66787.tar.bz2
mall-app-d7cff4d9e51b1a8e795bd66f7f6696664bd66787.zip
App.js fixed
-rw-r--r--App.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/App.js b/App.js
index 89934ec..8ba4a95 100644
--- a/App.js
+++ b/App.js
@@ -1,9 +1,9 @@
-import React form 'react';
-import { NavigationContainer } from '@react-navigation/native'
-import AppNavigator from './src/navigation/AppNavigator.js'
-import { CartProvider } from './src/context/CartContext.js'
+import React from 'react'; // Corrected 'form' to 'from'
+import { NavigationContainer } from '@react-navigation/native';
+import AppNavigator from './src/navigation/AppNavigator.js';
+import { CartProvider } from './src/context/CartContext.js';
-export default function App() {
+const App = () => {
return (
<CartProvider>
<NavigationContainer>
@@ -11,4 +11,7 @@ export default function App() {
</NavigationContainer>
</CartProvider>
);
-}
+};
+
+export default App;
+