Skip to content

Commit

Permalink
Material icons in Android menu
Browse files Browse the repository at this point in the history
  • Loading branch information
sastred committed Jun 9, 2016
1 parent 5b2cb63 commit 6f3dbd0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/Meneame.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react'
import MaterialIcons from 'react-native-vector-icons/MaterialIcons'
import Ionicon from 'react-native-vector-icons/Ionicons'

import { Menu } from 'react-native-section-menu'
Expand All @@ -13,7 +14,7 @@ import {

class Meneame extends React.Component {
render () {
const androidIconSize = 16
const androidIconSize = 18
const iOSiconSize = 30

return (
Expand All @@ -23,7 +24,7 @@ class Meneame extends React.Component {
id: 0,
title: 'Portada',
element: <MnmSectionPortada />,
androidIcon: <Ionicon name="ios-paper" size={androidIconSize} />,
androidIcon: <MaterialIcons name="description" size={androidIconSize} />,
itemComponent: Ionicon.TabBarItem,
iconName: 'ios-paper-outline',
selectedIconName: 'ios-paper',
Expand All @@ -33,7 +34,7 @@ class Meneame extends React.Component {
id: 1,
title: 'Nuevas',
element: <MnmSectionNuevas />,
androidIcon: <Ionicon name="ios-time" size={androidIconSize} />,
androidIcon: <MaterialIcons name="access-time" size={androidIconSize} />,
itemComponent: Ionicon.TabBarItem,
iconName: 'ios-time-outline',
selectedIconName: 'ios-time',
Expand All @@ -43,7 +44,7 @@ class Meneame extends React.Component {
id: 2,
title: 'Populares',
element: <MnmSectionPopulares />,
androidIcon: <Ionicon name="ios-heart" size={androidIconSize} />,
androidIcon: <MaterialIcons name="favorite" size={androidIconSize} />,
itemComponent: Ionicon.TabBarItem,
iconName: 'ios-heart-outline',
selectedIconName: 'ios-heart',
Expand All @@ -53,7 +54,7 @@ class Meneame extends React.Component {
id: 3,
title: 'Más visitadas',
element: <MnmSectionMasVisitadas />,
androidIcon: <Ionicon name="ios-flame" size={androidIconSize} />,
androidIcon: <MaterialIcons name="whatshot" size={androidIconSize} />,
itemComponent: Ionicon.TabBarItem,
iconName: 'ios-flame-outline',
selectedIconName: 'ios-flame',
Expand All @@ -63,7 +64,7 @@ class Meneame extends React.Component {
id: 4,
title: 'Destacadas',
element: <MnmSectionDestacadas />,
androidIcon: <Ionicon name="ios-star" size={androidIconSize} />,
androidIcon: <MaterialIcons name="grade" size={androidIconSize} />,
itemComponent: Ionicon.TabBarItem,
iconName: 'ios-star-outline',
selectedIconName: 'ios-star',
Expand Down

0 comments on commit 6f3dbd0

Please sign in to comment.