Skip to content

Instantly share code, notes, and snippets.

@chuyihuang
Created September 26, 2017 12:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuyihuang/63687727d34a082634c80c47dd6cc042 to your computer and use it in GitHub Desktop.
Save chuyihuang/63687727d34a082634c80c47dd6cc042 to your computer and use it in GitHub Desktop.
week_7_demo_1
// @flow
import React, {Component} from 'react';
import {Actions, ActionConst, Router, Scene} from 'react-native-router-flux';
import Home from './Home';
import Home1 from './Home1';
import PickerExample from './PickerExample';
import DatePickerExample from './DatePickerExample';
import TabIcon from './TabIcon';
export default class AppRouter extends Component {
render() {
return (
<Router>
<Scene key="homeGroup" initial tabs>
<Scene key="homeMain" initial icon={TabIcon}>
<Scene key="home" initial title="首頁" component={Home} />
<Scene key="home1" title="子頁" component={Home1} />
</Scene>
<Scene key="datePicker" title="日期選擇器" component={DatePickerExample} icon={TabIcon} />
<Scene key="picker" title="選擇器" component={PickerExample} icon={TabIcon} />
</Scene>
</Router>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment