-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwalletEntry.js
More file actions
50 lines (45 loc) · 1.14 KB
/
walletEntry.js
File metadata and controls
50 lines (45 loc) · 1.14 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import './global';
import './shim';
import React, {Component} from 'react';
import {createStackNavigator} from '@react-navigation/stack';
import Home from './src/WalletHome';
import WalletSettings from './src/screens/WalletSettings';
import WalletActions from './src/screens/WalletActions';
import {withTranslation} from 'react-i18next';
const Stack = createStackNavigator();
class App extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
const {t} = this.props;
return (
<Stack.Navigator>
<Stack.Screen
name="WalletHome"
component={Home}
options={{title: t('walletSettings.title')}}
/>
<Stack.Screen
name="My Wallet"
component={WalletActions}
navigation={this.props.navigation}
/>
<Stack.Screen
name="Wallet"
component={WalletSettings}
navigation={this.props.navigation}
/>
</Stack.Navigator>
);
}
}
export default withTranslation()(App);