-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.jsx
71 lines (67 loc) · 2.99 KB
/
App.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import {
ConnectionProvider,
RPC_ENDPOINT,
} from "./src/solana_providers/ConnectionProvider";
import { clusterApiUrl } from "@solana/web3.js";
import React from "react";
import { SafeAreaView, StyleSheet } from "react-native";
import { AuthorizationProvider } from "./src/solana_providers/AuthorizationProvider";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import HomeScreen from "./src/screens/home_screen/home";
import GroupScreen from "./src/screens/group_screens/group_screen";
import CreateGroupScreen from "./src/screens/create_group/create_group";
import TotalsScreen from "./src/screens/group_screens/totals/totals_screen";
import CreateTransactionScreen from "./src/screens/group_screens/create_transaction/create_transaction_screen";
import SelectTxnScreen from "./src/screens/group_screens/settle_screens/select_txn_screen/select_txn_screen";
import SettleBalanceScreen from "./src/screens/group_screens/settle_screens/settle_balance_screen/settle_balance_screen";
import LoginScreen from "./src/screens/login_screen/login";
import JoinGroupScreen from "./src/screens/join_group/join_group";
import TransactionDetailsScreen from "./src/screens/group_screens/txn_details/transaction_details_screen";
import ProfileScreen from "./src/screens/profile_screen/profile_screen";
export default function App() {
const Stack = createNativeStackNavigator();
return (
<NavigationContainer>
<ConnectionProvider
config={{ commitment: "processed" }}
endpoint={clusterApiUrl(RPC_ENDPOINT)}
>
<AuthorizationProvider>
<SafeAreaView style={styles.shell}>
<Stack.Navigator
screenOptions={{ headerShown: false }}
initialRouteName={"login"}
>
<Stack.Screen name={"login"} component={LoginScreen} />
<Stack.Screen name={"home"} component={HomeScreen} />
<Stack.Screen name={"group"} component={GroupScreen} />
<Stack.Screen
name={"create_group"}
component={CreateGroupScreen}
/>
<Stack.Screen name={"totals"} component={TotalsScreen} />
<Stack.Screen
name={"create_txn"}
component={CreateTransactionScreen}
/>
<Stack.Screen name="select_txn" component={SelectTxnScreen} />
<Stack.Screen name={"settle"} component={SettleBalanceScreen} />
<Stack.Screen name={"join_group"} component={JoinGroupScreen} />
<Stack.Screen
name={"txn_details"}
component={TransactionDetailsScreen}
/>
<Stack.Screen name={"profile_screen"} component={ProfileScreen} />
</Stack.Navigator>
</SafeAreaView>
</AuthorizationProvider>
</ConnectionProvider>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
shell: {
height: "100%",
},
});