-
Notifications
You must be signed in to change notification settings - Fork 1
/
Credits.js
213 lines (199 loc) · 8.28 KB
/
Credits.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
import React, { Component } from 'react';
import {
AppRegistry,
Image,
ListView,
Alert,
TouchableHighlight,
TouchableOpacity,
StyleSheet,
controlPanel,
drawerStyles,
Text,
Navigator,
ScrollView,
Dimensions,
View,
Linking,
WebView
} from 'react-native';
var Icon = require('react-native-vector-icons/FontAwesome');
var Icon2 = require('react-native-vector-icons/Octicons');
var Icon3 = require('react-native-vector-icons/Ionicons');
var DrawerLayoutAndroid = require('DrawerLayoutAndroid')
import ScrollableTabView, { DefaultTabBar, ScrollableTabBar, } from 'react-native-scrollable-tab-view';
import FacebookTabBar from './FacebookTabBar';
import ActionButton from 'react-native-action-button';
var {height, width} = Dimensions.get('window');
var Credits = React.createClass({
render: function()
{
return(
<Navigator
/* configureScene={(route) => {
transition = Navigator.SceneConfigs.HorizontalSwipeJump
transition.gestures = null}}*/
navigator={this.props.navigator}
// initialRoute={{onRightButton: (() => this._openDrawer())}}
navigationBar={
<Navigator.NavigationBar style={{backgroundColor: '#246dd5'}}
routeMapper={NavigationBarRouteMapper} />
}
renderScene={() =>this.renderScene()}
/>
);
},
renderScene: function()
{
return (
<View style={styles.tab}>
<ScrollableTabView renderTabBar={() => <FacebookTabBar />}>
<ScrollView tabLabel="android-share-alt" style={styles.tabView}>
<Social/>
</ScrollView>
<ScrollView tabLabel="university" style={styles.tabView}>
<Info/>
</ScrollView>
<ScrollView tabLabel="ios-information" style={styles.tabView}>
<IReact/>
</ScrollView>
</ScrollableTabView>
</View>
);
},
_openDrawer:function() {
this.refs['drawer'].openDrawer();
},
});
var Social = React.createClass({
render: function()
{
return(
<View style={styles.container}>
<View style={styles.row}>
<Icon.Button name="twitter" color="#2c3e50" backgroundColor="#dcf4ff" size ={30} onPress={() => Linking.openURL("https://twitter.com/Mayeul31")}><Text style={{fontFamily:'Bariol', fontSize:18}}> My Twitter (@Mayeul31)</Text></Icon.Button>
<View style={styles.space} />
<Icon.Button name="github" color="#2c3e50" backgroundColor="#dcf4ff" size ={30} onPress={() => Linking.openURL("https://github.com/MayeuldP")}><Text style={{fontFamily:'Bariol', fontSize:18}}> My Github (/MayeuldP)</Text></Icon.Button>
<View style={styles.space} />
<Icon.Button name="linkedin" color="#2c3e50" backgroundColor="#dcf4ff" size ={30} onPress={() => Linking.openURL("https://fr.linkedin.com/in/mayeul-du-pradel-99108a8a")}><Text style={{fontFamily:'Bariol', fontSize:18}}> My Linkedin</Text></Icon.Button>
<View style={styles.space} />
<Icon2.Button name="broadcast" color="#2c3e50" backgroundColor="#dcf4ff" size ={30} onPress={() => Linking.openURL("http://mayeuldupradel.me/")}><Text style={{fontFamily:'Bariol', fontSize:18}}> My Website</Text></Icon2.Button>
<View style={{height: StyleSheet.hairlineWidth, marginVertical: 30,}}/>
</View>
<View>
<Text style={{textAlign: 'center', color:'#2c3e50', fontFamily:'Bariol'}}>Mayeul du Pradel - Août 2016</Text>
</View>
</View>
);
}
});
var Info = React.createClass({
render: function()
{
return(
<View style={styles.container}>
<Text style={{textAlign: 'center', fontFamily:'Bariol', fontSize: 15}}>Hey :) My name is Mayeul du Pradel. I'm 20, and i'm an IT student in the
European Institute of Information Technology (EPITECH) in France. I'm a third year's
student. I'm mainly learning programming, and have already studied C, C++, Java, Python,
C#, HTML/CSS, SQL... I'm currently trainee in a French software firm where I learn
React-Native, a cross-platform's solution for mobile developpement. </Text>
<View style={styles.space} />
<View style={styles.info}>
<Icon.Button underlayColor="#F5FCFF" name="graduation-cap" color="#2c3e50" backgroundColor="#dcf4ff"
size ={30} style={styles.share} onPress={() => Linking.openURL("http://www.epitech.eu/")}><Text style={{fontSize: 18, fontFamily:'Bariol'}}>Epitech</Text></Icon.Button>
<View style={styles.space} />
<Icon.Button underlayColor="#F5FCFF" name ="code" color="#2c3e50" backgroundColor="#dcf4ff"
size ={30} style={styles.share} onPress={() => Linking.openURL("https://facebook.github.io/react-native/")}><Text style={{fontSize: 18, fontFamily:'Bariol'}}>React-Native</Text></Icon.Button>
<View style={styles.space} />
</View>
<Text style={{textAlign:'center', fontFamily: 'Bariol'}}>mail : [email protected]</Text>
</View>
);
}
});
var IReact = React.createClass({
render: function()
{
return(
<View>
<Text style={{marginTop: width/2, fontFamily:'Bariolitalic', textAlign: 'center'}}>
This app's was develop using React-Native. You will find on my github all component that I used
, and the nodes_modules that I installed. And of course the complete code.</Text>
</View>
);
}
});
var NavigationBarRouteMapper = {
LeftButton(route, navigator, index, navState) {
return (
<TouchableOpacity style={{flex: 1, justifyContent: 'center'}}
onPress={() => navigator.parentNavigator.pop()}>
<Text style={{color: 'white', margin: 10, fontSize: 18, fontFamily:'Bariol' }}>
<Image
style={styles.icon}
source={require('./img/arrows.png')}
/>
{' Home'}
</Text>
</TouchableOpacity>
);
},
RightButton(route, navigator, index, navState) {
return(null);
},
Title(route, navigator, index, navState) {
return null;
}
};
var styles = StyleSheet.create({
tab:{
paddingTop: 60,
flex:1,
backgroundColor:"white",
paddingLeft:10,
paddingRight:10,
},
space: {
height: StyleSheet.hairlineWidth,
marginVertical: 10,
},
blank: {
height: StyleSheet.hairlineWidth,
marginVertical: 12,
},
container: {
flex:1,
backgroundColor:'white',
paddingTop: 20
},
icon: {
paddingTop:10,
width: 15,
height: 15,
},
row: {
backgroundColor:'white',
paddingLeft: 40,
},
bio: {
paddingLeft: 20,
paddingRight: 20
},
share:
{
justifyContent:'center',
},
info:{
paddingLeft: 50,
paddingRight: 50
},
actionButtonIcon: {
fontSize: 20,
height: 22,
color: 'white',
},
});
AppRegistry.registerComponent('Credits', () => Credits);
module.exports = Credits;
//<Text style={{marginLeft:10, marginTop: width/2, fontStyle: 'italic'}}>This app's was develop using React-Native. You will find on my github all component that I used
// , and the nodes_modules that I installed. And of course the complete code.</Text>