11import React from 'react'
2+ import { StyleSheet , Image , Text , Dimensions } from 'react-native'
23import MaterialIcons from 'react-native-vector-icons/MaterialIcons'
34import Ionicon from 'react-native-vector-icons/Ionicons'
45import { Menu } from 'react-native-section-menu'
@@ -12,14 +13,46 @@ import {
1213} from './MnmSections'
1314
1415
16+ const MnmAndroidHeader = ( props ) =>
17+ < Image source = { require ( './img/header.png' ) } style = { styles . headerContainer } resizeMode = "cover" >
18+ < Text style = { styles . headerText } > Menéame</ Text >
19+ < Text style = { styles . versionText } > Versión 1.0</ Text >
20+ </ Image >
21+
22+ const styles = StyleSheet . create ( {
23+ headerContainer : {
24+ flexDirection : 'column' ,
25+ justifyContent : 'flex-end' ,
26+ alignItems : 'flex-start' ,
27+ width : Dimensions . get ( 'window' ) . width - 56 ,
28+ height : ( ( Dimensions . get ( 'window' ) . width - 56 ) * 9 ) / 16 ,
29+ backgroundColor : 'coral' ,
30+ } ,
31+ headerText : {
32+ color : 'white' ,
33+ fontSize : 24 ,
34+ marginLeft : 14 ,
35+ marginBottom : 4 ,
36+ } ,
37+ versionText : {
38+ color : 'white' ,
39+ fontSize : 14 ,
40+ marginLeft : 14 ,
41+ marginBottom : 8 ,
42+ }
43+ } )
44+
45+
1546class Meneame extends React . Component {
1647 render ( ) {
1748 const androidIconSize = 18
1849 const iOSiconSize = 30
1950 let itemId = 0
51+ const header = < MnmAndroidHeader />
2052
2153 return (
2254 < Menu barTintColor = "black" tintColor = "#d35400" initialEntry = { 0 }
55+ header = { header }
2356 entries = { [
2457 {
2558 id : itemId ++ ,
0 commit comments