-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alterações do Pedro e outras correções
- Loading branch information
1 parent
f4ccd52
commit b1e3639
Showing
2 changed files
with
119 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,107 @@ | ||
import { Ionicons } from "@expo/vector-icons"; | ||
import { View,Text, TouchableOpacity } from "react-native"; | ||
import { View, Text, TouchableOpacity, ScrollView, StyleSheet } from "react-native"; | ||
import React from "react"; | ||
import { StyleSheet } from "react-native"; | ||
import { SafeAreaView } from "react-native-safe-area-context"; | ||
import { router } from 'expo-router'; | ||
import { Pressable } from "react-native"; | ||
|
||
const servicoPrestador = () => { | ||
const ServicoPrestador = () => { | ||
|
||
const prestadorClick = ()=>{ | ||
router.navigate('/(servico)/prestador') | ||
} | ||
|
||
const tiposServicos = [ | ||
|
||
{ id: '1', servico: 'Manutenção Geral de Jardins' }, | ||
{ id: '2', servico: 'Paisagismo' }, | ||
{ id: '3', servico: 'Poda de Árvores e Arbustos' }, | ||
{ id: '4', servico: 'Instalação de Sistemas de Irrigação' }, | ||
{ id: '5', servico: 'Preparação do Solo' }, | ||
{ id: '6', servico: 'Instalação de Grama e Tapetes Verdes' }, | ||
const prestadorClick = () => { | ||
router.navigate('/(servico)/prestador'); | ||
} | ||
|
||
] | ||
return( | ||
|
||
<SafeAreaView style={styles.container}> | ||
<View style = {styles.topoTela}> | ||
<Pressable onPress={prestadorClick}> | ||
<Ionicons name="arrow-back-outline" size={30} color="white" /> | ||
</Pressable> | ||
|
||
<View style={styles.centralTitulo}> | ||
<Ionicons name="bag-handle-outline" size={35} color="white" /> | ||
<Text style={styles.userName}>Serviços do Prestadores</Text> | ||
</View> | ||
</View> | ||
const agendamentoClick = () => { | ||
router.navigate('/(agenda)/agendamento'); | ||
} | ||
|
||
const tiposServicos = [ | ||
{ id: '1', servico: 'Manutenção Geral de Jardins' }, | ||
{ id: '2', servico: 'Paisagismo' }, | ||
{ id: '3', servico: 'Poda de Árvores e Arbustos' }, | ||
{ id: '4', servico: 'Instalação de Sistemas de Irrigação' }, | ||
{ id: '5', servico: 'Preparação do Solo' }, | ||
{ id: '6', servico: 'Instalação de Grama e Tapetes Verdes' }, | ||
]; | ||
|
||
<View> | ||
const nomePrestador = [ | ||
{ id: '1', nome: 'Pedro' }, | ||
{ id: '2', nome: 'Rafael' }, | ||
]; | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<View style={styles.topoTela}> | ||
<TouchableOpacity onPress={prestadorClick}> | ||
<Ionicons name="arrow-back-outline" size={30} color="white" /> | ||
</TouchableOpacity> | ||
|
||
<View style={styles.centralTitulo}> | ||
<Ionicons name="bag-handle-outline" size={35} color="white" /> | ||
<Text style={styles.userName}>Serviços do Prestador</Text> | ||
</View> | ||
</View> | ||
|
||
</SafeAreaView> | ||
{nomePrestador.map((nome) => ( | ||
<View style={styles.titulo} key={nome.id}> | ||
<Text>{nome.nome}</Text> | ||
</View> | ||
))} | ||
|
||
<ScrollView> | ||
{tiposServicos.map((tipos, index) => ( | ||
<TouchableOpacity key={tipos.id} onPress={agendamentoClick}> | ||
<View style={styles.tipoServicos}> | ||
<Text style={styles.textoServico}> | ||
{index + 1} - Serviço {tipos.servico} | ||
</Text> | ||
</View> | ||
</TouchableOpacity> | ||
))} | ||
</ScrollView> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
container:{ | ||
flex: 1, | ||
// padding: 16, | ||
backgroundColor:'white', | ||
|
||
|
||
}, | ||
topoTela:{ | ||
backgroundColor: '#FBCB1C', | ||
borderBottomLeftRadius: 20, | ||
borderBottomRightRadius: 20, | ||
padding: 25, | ||
marginBottom: 20, | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
centralTitulo:{ | ||
margin:'auto', | ||
flexDirection:'row', | ||
alignItems:'center', | ||
justifyContent:'center' | ||
}, | ||
userName: { | ||
color: 'white', | ||
fontSize: 20, | ||
fontWeight: 'bold', | ||
marginLeft: 15, | ||
}, | ||
|
||
container: { | ||
flex: 1, | ||
backgroundColor: 'white', | ||
}, | ||
topoTela: { | ||
backgroundColor: '#FBCB1C', | ||
borderBottomLeftRadius: 20, | ||
borderBottomRightRadius: 20, | ||
padding: 25, | ||
marginBottom: 20, | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
centralTitulo: { | ||
margin: 'auto', | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
userName: { | ||
color: 'white', | ||
fontSize: 20, | ||
fontWeight: 'bold', | ||
marginLeft: 15, | ||
}, | ||
tipoServicos: { | ||
backgroundColor: '#f0f0f0', | ||
margin: 4, | ||
padding: 19, | ||
}, | ||
textoServico: { | ||
fontWeight: 'bold', | ||
}, | ||
titulo: { | ||
fontWeight: 'bold', | ||
alignItems: 'center', | ||
fontSize: 20, | ||
}, | ||
}); | ||
export default servicoPrestador; | ||
|
||
export default ServicoPrestador; |