-
Notifications
You must be signed in to change notification settings - Fork 625
/
Finance.js
34 lines (29 loc) · 941 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
import React from 'react';
// 3rd party libraries
import {
Actions,
Router,
Scene,
// Reducer,
} from 'react-native-router-flux';
// Views
import MainView from './app/views/main';
import SettingsView from './app/views/settings';
import AddView from './app/views/add';
// @todo remove when RN upstream is fixed
console.ignoredYellowBox = [
'Warning: In next release empty section headers will be rendered.',
'Warning: setState(...): Can only update a mounted or mounting component.',
];
const scenes = Actions.create(
<Scene key="root" hideNavBar={true}>
<Scene key="main" title="Main" component={MainView} initial={true} />
<Scene key="settings" direction="vertical" title="Stocks" component={SettingsView} />
<Scene key="add" direction="vertical" title="Add" component={AddView} />
</Scene>
);
export default class Periods extends React.Component {
render() {
return <Router scenes={scenes} />;
}
}