Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteb7aa76

Browse files
authored
Merge pull request#26 from CoderVets/thebutton
created new button and misc items
2 parentsa5d20b0 +b842087 commiteb7aa76

File tree

7 files changed

+65
-41
lines changed

7 files changed

+65
-41
lines changed

‎drifters_app/js/Comps/GoogleMap.js‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
importReact,{Component}from'react';
2+
import{WebView}from'react-native';
3+
4+
classGoogleMapextendsComponent{
5+
render(){
6+
return(
7+
<WebView
8+
source={{uri:'http://www.worldatlas.com/img/locator/city/032/4132-guantanamo-locator-map.jpg'}}
9+
style={{marginTop:20}}
10+
/>
11+
);
12+
}
13+
}

‎drifters_app/js/Comps/Header.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const styles = {
2424
elevation:2
2525
},
2626
textStyle:{
27+
color:'white',
2728
fontSize:30
2829
},
2930
};
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//Button for bringing in a Map of somthing.
2+
3+
importReact,{Component}from'react';
4+
import{Alert,AppRegistry,Platform,StyleSheet,Text,
5+
TouchableOpacity,View}from'react-native';
6+
7+
exportdefaultclassMainButtonextendsComponent{
8+
_onPressButton(){
9+
Alert.alert('This should go to a map.')
10+
}
11+
12+
render(){
13+
return(
14+
<TouchableOpacityonPress={this._onPressButton}>
15+
<Viewstyle={styles.button}>
16+
<Textstyle={styles.buttonText}>Enter</Text>
17+
</View>
18+
</TouchableOpacity>
19+
);
20+
}
21+
}
22+
23+
conststyles=StyleSheet.create({
24+
button:{
25+
marginBottom:30,
26+
alignItems:'center',
27+
backgroundColor:'#95A5A6'
28+
//flex: 1,
29+
//flexDirection: 'column',
30+
//justifyContent: 'center',
31+
//alignItems: 'center'
32+
},
33+
buttonText:{
34+
padding:20,
35+
color:'white',
36+
fontSize:30
37+
}
38+
})
39+

‎drifters_app/js/Comps/button1.js‎

Lines changed: 0 additions & 40 deletions
This file was deleted.

‎drifters_app/js/DrifterApp.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import FindMe from './Comps/FindMe'
55
importLatfrom'./Comps/Lat'
66
importLongfrom'./Comps/Long'
77
importHeaderfrom'./Comps/Header'
8+
importMainButtonfrom'./Comps/MainButton'
89

910
exportclassDrifterAppextendsReact.Component{
1011
render(){
@@ -15,6 +16,7 @@ export class DrifterApp extends React.Component{
1516
<FindMe/>
1617
<Lat/>
1718
<Long/>
19+
<MainButton/>
1820

1921

2022

‎drifters_app/package-lock.json‎

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎drifters_app/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
},
99
"dependencies": {
1010
"react":"16.0.0-alpha.12",
11-
"react-native":"0.48.4"
11+
"react-native":"0.48.4",
12+
"react-native-button":"^2.1.0"
1213
},
1314
"devDependencies": {
1415
"babel-jest":"21.2.0",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp