Spaces:
No application file
No application file
Create app.js
Browse filesquantum-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
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 |
+
}
|