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

Commit71d8d5b

Browse files
added header to second page. set 2nd page header to null it was taking up to much screen space and redundent.
1 parent85a35d7 commit71d8d5b

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

‎drifters_app/js/Comps/GoogleMap.js‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
importReact,{Component}from'react';
2-
import{WebView}from'react-native';
2+
import{WebView,View}from'react-native';
3+
importHeaderfrom'./Header'
34

45
exportdefaultclassGoogleMapextendsComponent{
56
render(){
67
return(
8+
<Viewstyle={{
9+
flex:1,
10+
flexDirection:'column',
11+
//justifyContent: 'space-between',
12+
}}>
13+
<HeaderheaderText={'Drift Plot'}/>
714
<WebView
8-
source={{uri:'http://www.worldatlas.com/img/locator/city/032/4132-guantanamo-locator-map.jpg'}}
9-
style={{marginTop:20}}
15+
source={{uri:'http://www.worldatlas.com/img/locator/city/032/4132-guantanamo-locator-map.jpg'}}
16+
//style={{marginTop: 20}}
1017
/>
11-
);
18+
</View>
19+
);
1220
}
13-
}
21+
}
22+

‎drifters_app/js/Comps/Header.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const styles = {
1717
justifyContent:'center',
1818
alignItems:'center',
1919
height:60,
20-
paddingTop:15,
20+
paddingTop:0,
2121
shadowColor:'#000',
2222
shadowOffset:{width:0,height:2},
2323
shadowOpacity:0.2,

‎drifters_app/js/DrifterApp.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const DrifterApp = StackNavigator({
1515
screen:GoogleMap,
1616
navigationOptions:{
1717
title:null,
18+
header:null,
1819
}
1920
}
2021
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp