-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
39 lines (37 loc) · 977 Bytes
/
App.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 from 'react';
import {
Scene,
Router,
Tabs,
} from 'react-native-router-flux';
import Ranking from './components/Ranking';
import Currency from './components/Currency';
import PieChart from './components/PieChart';
const App = () => (
<Router>
<Tabs
key='main'
swipeEnabled={ true }
animationEnabled={ true }
hideTabBar={true}
>
<Scene>
<Scene
key='Ranking'
initial={ true } // 隣接するsceneで最初に表示される
component={Ranking}
tabBarLabel="ランキング"
hideNavBar={true}
/>
<Scene key="Currency" component={Currency} title="通貨別取引詳細" />
</Scene>
<Scene
key='PieChart'
component={PieChart}
tabBarLabel="円グラフ"
hideNavBar={true}
/>
</Tabs>
</Router>
);
export default App;