-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
61 lines (56 loc) · 2.42 KB
/
App.tsx
File metadata and controls
61 lines (56 loc) · 2.42 KB
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
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import HomeScreen from './screens/home';
import ApiSelection from './screens/api_selection';
import {RootStackParamList} from './screens/common/RootStackParam';
import {
DapiConnection,
} from 'connect-react-native';
import Data from './screens/data/data';
import Payment from './screens/payment/payment';
import Metadata from './screens/metadata/metadata';
import Wire from './screens/wire/wire';
import Accounts from './screens/data/accounts';
import Identity from './screens/data/identity';
import Cards from './screens/data/cards';
import Transactions from './screens/data/transactions';
import Beneficiaries from './screens/payment/beneficiaries';
import WireBeneficiaries from './screens/wire/wire_beneficiaries';
import CreateBeneficiary from './screens/payment/create_beneficiary';
import CreateWireBeneficiary from './screens/wire/create_wire_beneficiary';
const Stack = createStackNavigator<RootStackParamList>();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="ApiSelection" component={ApiSelection} />
<Stack.Screen name="Data" component={Data} />
<Stack.Screen name="Metadata" component={Metadata} />
<Stack.Screen name="Payment" component={Payment} />
<Stack.Screen name="Wire" component={Wire} />
<Stack.Screen name="Identity" component={Identity} />
<Stack.Screen name="Accounts" component={Accounts} />
<Stack.Screen name="Cards" component={Cards} />
<Stack.Screen name="AccountTransactions">
{() => <Transactions isAccountTransactions={true} />}
</Stack.Screen>
<Stack.Screen name="CardTransactions">
{() => <Transactions isAccountTransactions={false} />}
</Stack.Screen>
<Stack.Screen name="Beneficiaries" component={Beneficiaries} />
<Stack.Screen name="WireBeneficiaries" component={WireBeneficiaries} />
<Stack.Screen name="CreateBeneficiary" component={CreateBeneficiary} />
<Stack.Screen
name="CreateWireBeneficiary"
component={CreateWireBeneficiary}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
class Common {
connection: DapiConnection | undefined;
}
export const common = new Common();
export default App;