-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.android.js
More file actions
41 lines (34 loc) · 932 Bytes
/
Copy pathindex.android.js
File metadata and controls
41 lines (34 loc) · 932 Bytes
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
40
41
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
AlertIOS,
Text,
ListView,
View,
Navigator
} from 'react-native';
const Firebase = require('firebase');
const styles = require('./styles.js');
const WelcomeScreen = require('./components/WelcomeScreen');
class HomebrewTool extends Component {
render() {
return (
<Navigator
initialRoute={{name: 'WelcomeScreen', component: WelcomeScreen}}
configureScene={() => {
return Navigator.SceneConfigs.FloatFromRight;
}}
renderScene={(route, navigator) => {
// count the number of func calls
console.log(route, navigator);
if (route.component) {
return React.createElement(route.component, { navigator });
}
}}
/>
);
}
}
AppRegistry.registerComponent('HomebrewTool', () => HomebrewTool);