-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
27 lines (21 loc) · 915 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
import React from 'react';
import {Actions, Scene, Router} from 'react-native-router-flux';
import HomeScreen from "./screens/HomeScreen";
import GoldScreen from "./screens/GoldScreen";
import CreditScreen from "./screens/CreditScreen";
import DetailScreen from "./screens/DetailScreen";
import GoldDetailScreen from "./screens/GoldDetailScreen";
export default class App extends React.Component {
render() {
const scenes = Actions.create(
<Scene key="root">
<Scene key="HomeScreen" component={HomeScreen}/>
<Scene key="GoldScreen" component={GoldScreen}/>
<Scene key="CreditScreen" component={CreditScreen}/>
<Scene key="DetailScreen" component={DetailScreen}/>
<Scene key="GoldDetailScreen" component={GoldDetailScreen}/>
</Scene>
);
return <Router scenes={scenes}/>
}
}