-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ios.js
More file actions
54 lines (47 loc) · 1.15 KB
/
index.ios.js
File metadata and controls
54 lines (47 loc) · 1.15 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
//TabBarIOS
} from 'react-native';
import App from './app/App';
export default class ConifrAppiOS extends Component {
/*constructor() {
super();
this.state = {
selectedTab: 0
};
}
handleTabPress(tab) {
this.setState({ selectedTab: tab })
}*/
render() {
return (
/*<TabBarIOS>
<TabBarIOS.Item
systemIcon="featured"
selected={true}
selected={this.state.selectedTab === 0}
onPress={this.handleTabPress.bind(this, 0)}
>
<View style={styles.view}>
<Text style={styles.text}>Favorite Places</Text>
</View>
</TabBarIOS.Item>
<TabBarIOS.Item
systemIcon="more"
selected={this.state.selectedTab === 1}
onPress={this.handleTabPress.bind(this, 1)}
>
<View style={styles.view}>
<Text style={styles.text}>Add Place</Text>
</View>
</TabBarIOS.Item>
</TabBarIOS>*/
<App />
);
}
}
AppRegistry.registerComponent('ConifrApp', () => ConifrAppiOS);