-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.android.js
29 lines (24 loc) · 962 Bytes
/
index.android.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
import React, { Component } from 'react';
import { AppRegistry, Navigator, BackAndroid } from 'react-native';
// import { Timer } from './src/app/components/Timer';
// import { styles } from './src/app/styles/styles';
import { CreateProgramme } from './src/app/components/CreateProgramme';
import { Programme } from './src/app/components/Programme';
export default class HIITMe extends Component {
render() {
// <Programme highDuration="15" lowDuration="30" intervals="10"></Programme>
return (
<Navigator
initialRoute={{ name: 'CreateProgramme' }}
renderScene={(route, navigator) => {
if (route.name === 'CreateProgramme') {
return <CreateProgramme navigator={navigator} />
} else if (route.name === 'Programme') {
return <Programme navigator={navigator} {...route.passProps} />
}
}}
/>
);
}
}
AppRegistry.registerComponent('HIITMe', () => HIITMe);