-
Notifications
You must be signed in to change notification settings - Fork 20
/
Finance.js
39 lines (33 loc) · 958 Bytes
/
Finance.js
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
import React, { Component } from 'react';
import {
// Header,
// Link,
nativeHistory,
Route,
Router,
// StackRoute,
// withRouter,
} from 'react-router-native';
import { Provider } from 'mobx-react/native';
// Views
import MainView from './app/views/main';
import SettingsView from './app/views/settings';
import AddView from './app/views/add';
import listStore from './app/store/listStore';
import selectedStore from './app/store/selectedStore';
// @todo remove when RN upstream is fixed
console.ignoredYellowBox = [];
const stores = { listStore, selectedStore };
export default class AppRouter extends Component {
render() {
return (
<Provider {...stores}>
<Router history={nativeHistory}>
<Route path="/" component={MainView} />
<Route path="settings" title="Stocks" component={SettingsView} />
<Route path="add" component={AddView} />
</Router>
</Provider>
);
}
}