Skip to content

Commit

Permalink
fga-eps-mds#175 - Modifying icons in profile screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronyell authored and ThalissonMelo committed Jun 12, 2018
1 parent f313be2 commit fce00b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"name": "MerendaMais",
"displayName": "Merenda Mais"
"displayName": "Merenda Mais",
"icon": "./src/images/icone.png",
"slug": "merendamais"
}
3 changes: 3 additions & 0 deletions src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from 'react';
import { View, StyleSheet, Text, TouchableOpacity, Dimensions } from 'react-native';
import PropTypes from 'prop-types';
import { Actions } from 'react-native-router-flux';
import Ionicons from 'react-native-vector-icons/Ionicons';


const { width } = Dimensions.get('window');

Expand Down Expand Up @@ -55,6 +57,7 @@ const Header = props => (
<View style={styles.wrapper}>
<View style={styles.buttonWrapper}>
<TouchableOpacity onPress={props.onPress} >
<Ionicons name="ios-arrow-back-outline" style={styles.icon} size={45} color="black" />
</TouchableOpacity>
</View>
<View style={styles.textWrapper}>
Expand Down
2 changes: 2 additions & 0 deletions src/screens/ProfileInfoScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
import { Text, ScrollView, View, BackHandler } from 'react-native';
import Header from '../components/Header';
import Button from '../components/Button';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import { backHandlerPopToMain } from '../NavigationFunctions';
import PROFILE_FIELDS from '../constants/profileInformations';
import styles from '../Styles/ProfileStyles';
Expand Down Expand Up @@ -49,6 +50,7 @@ export default class ProfileInfoScreen extends React.Component {
{
PROFILE_FIELDS.map((item, index) => (
<View style={styles.field}>
<MaterialIcons name={item.icon} style={styles.icon} size={32} color="black" />
<Text>{item.label} {informations[index]}</Text>
</View>
),
Expand Down

0 comments on commit fce00b3

Please sign in to comment.