|
@ -1,23 +1,26 @@ |
|
|
import React from "react"; |
|
|
import React from "react"; |
|
|
import { StyleSheet, Text, TouchableOpacity, View } from "react-native"; |
|
|
|
|
|
|
|
|
import { StyleSheet, Text, TouchableOpacity, View, Image } from "react-native"; |
|
|
import { MaterialIcons } from '@expo/vector-icons'; |
|
|
import { MaterialIcons } from '@expo/vector-icons'; |
|
|
|
|
|
|
|
|
import colors from "../config/colors"; |
|
|
import colors from "../config/colors"; |
|
|
import { dimensions } from "../config/dimensions"; |
|
|
import { dimensions } from "../config/dimensions"; |
|
|
import { Ionicons } from '@expo/vector-icons'; |
|
|
|
|
|
|
|
|
|
|
|
function MenuItens({ item, onPress, icon }) { |
|
|
|
|
|
|
|
|
function MenuItens({ item, onPress, icon, image }) { |
|
|
return ( |
|
|
return ( |
|
|
<TouchableOpacity onPress={onPress} style={[styles.item]}> |
|
|
<TouchableOpacity onPress={onPress} style={[styles.item]}> |
|
|
<View style={{ flexDirection: "row", flex: 1, paddingTop: 20 }}> |
|
|
|
|
|
<View style={{ flexDirection: "row", flex: 0.20 }}> |
|
|
|
|
|
<Ionicons name="md-rainy" size={24} color={colors.lightBlue} /> |
|
|
|
|
|
|
|
|
<View style={{ flexDirection: "row", flex: 1, paddingTop: 20, justifyContent: "center" }}> |
|
|
|
|
|
<View style={{ flexDirection: "row", flex: 0.15, justifyContent:"center" }}> |
|
|
|
|
|
<Image |
|
|
|
|
|
style={{ width: 30, height: 25 }} |
|
|
|
|
|
resizeMode= "contain" |
|
|
|
|
|
source={image} |
|
|
|
|
|
/> |
|
|
</View> |
|
|
</View> |
|
|
<View style={{ flexDirection: "row", flex: 0.70 }}> |
|
|
<View style={{ flexDirection: "row", flex: 0.70 }}> |
|
|
<Text style={[styles.text]}>{item.name}</Text> |
|
|
<Text style={[styles.text]}>{item.name}</Text> |
|
|
</View> |
|
|
</View> |
|
|
<View |
|
|
<View |
|
|
style={{ flex: 0.10, alignSelf: "flex-start", flexDirection: "row" }}> |
|
|
|
|
|
|
|
|
style={{ flex: 0.15, alignSelf: "flex-start", flexDirection: "row", justifyContent: "flex-start" }}> |
|
|
<MaterialIcons name={icon} size={24} color={colors.lightBlue} /> |
|
|
<MaterialIcons name={icon} size={24} color={colors.lightBlue} /> |
|
|
</View> |
|
|
</View> |
|
|
</View> |
|
|
</View> |
|
|