-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ios.js
80 lines (67 loc) · 1.55 KB
/
index.ios.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
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, {
AppRegistry,
View,
Component,
Text,
StyleSheet,
StatusBarIOS
} from 'react-native';
StatusBarIOS.setStyle('light-content');
class itunesBrowser extends Component {
render() {
return (
<View style={styles.mainContainer}>
<View style={styles.navbar}>
<Text style={[styles.navBarTitle,componentStyle.titleItalic]}>itunesBrowser</Text>
<Text style={styles.navButton}>Search</Text>
</View>
<View style={styles.content}>
<Text>HEllow stuff HEllow stuffHEllow stuffHEllow stuffHEllow stuff
HEllow stuffHEllow stuffHEllow stuff
HEllow stuffHEllow stuffHEllow stuffHEllow stuff
HEllow stuffHEllow stuffHEllow stuffHEllow stuff
HEllow stuffHEllow stuffHEllow stuffHEllow stuff
HEllow stuffHEllow stuffHEllow stuff
</Text>
</View>
</View>
);
}
}
var componentStyle = StyleSheet.create({
titleItalic: {
fontStyle: 'italic'
}
});
var styles=StyleSheet.create({
mainContainer: {
flex: 1
},
content: {
flex: 1,
backgroundColor: '#CCC'
},
navbar: {
backgroundColor:'#2A3744',
paddingTop: 30,
paddingBottom: 30,
flexDirection: 'row',
},
navBarTitle: {
color: '#FEFEFE',
textAlign: 'center',
fontWeight: 'bold',
flex: 1
},
navButton: {
width: 50,
color: '#FEFEFE',
textAlign: 'center',
flex: 0
}
});
AppRegistry.registerComponent('itunesBrowser', () => itunesBrowser);