onenoly11 commited on
Commit
9069c44
Β·
verified Β·
1 Parent(s): 873903e

Create app.js

Browse files

quantum-pi-forge-pi-ready/
β”œβ”€β”€ App.js
β”œβ”€β”€ package.json
β”œβ”€β”€ app.json
β”œβ”€β”€ assets/
β”‚ β”œβ”€β”€ icons/
β”‚ β”œβ”€β”€ images/
β”‚ └── fonts/
β”œβ”€β”€ components/
β”‚ β”œβ”€β”€ WalletConnect.js
β”‚ β”œβ”€β”€ QuantumMining.js
β”‚ β”œβ”€β”€ TokenStaking.js
β”‚ β”œβ”€β”€ VRGateway.js
β”‚ └── AuthScreen.js
β”œβ”€β”€ context/
β”‚ └── PiContext.js
β”œβ”€β”€ screens/
β”‚ β”œβ”€β”€ HomeScreen.js
β”‚ β”œβ”€β”€ MiningScreen.js
β”‚ β”œβ”€β”€ WalletScreen.js
β”‚ └── VRScreen.js
β”œβ”€β”€ utils/
β”‚ └── oinioLogic.js
└── .env.production

Files changed (1) hide show
  1. app.js +27 -0
app.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react';
2
+ import { NavigationContainer } from '@react-navigation/native';
3
+ import { createStackNavigator } from '@react-navigation/stack';
4
+ import { PiProvider } from './context/PiContext';
5
+ import HomeScreen from './screens/HomeScreen';
6
+ import MiningScreen from './screens/MiningScreen';
7
+ import WalletScreen from './screens/WalletScreen';
8
+ import VRScreen from './screens/VRScreen';
9
+ import AuthScreen from './components/AuthScreen';
10
+
11
+ const Stack = createStackNavigator();
12
+
13
+ export default function App() {
14
+ return (
15
+ <PiProvider>
16
+ <NavigationContainer>
17
+ <Stack.Navigator initialRouteName="Auth">
18
+ <Stack.Screen name="Auth" component={AuthScreen} options={{ headerShown: false }} />
19
+ <Stack.Screen name="Home" component={HomeScreen} />
20
+ <Stack.Screen name="Mining" component={MiningScreen} />
21
+ <Stack.Screen name="Wallet" component={WalletScreen} />
22
+ <Stack.Screen name="VR" component={VRScreen} />
23
+ </Stack.Navigator>
24
+ </NavigationContainer>
25
+ </PiProvider>
26
+ );
27
+ }