reservar screen movil

This commit is contained in:
Maria Sanchez 2022-08-17 16:47:48 -06:00
parent 7416803b1a
commit 37e764de60
5 changed files with 64 additions and 11 deletions

View File

@ -12,6 +12,7 @@ import RecoverPassword from "./components/RecoverPassword";
import Reservas from "./components/Reservas"; import Reservas from "./components/Reservas";
import Profile from "./components/Profile"; import Profile from "./components/Profile";
import { MaterialCommunityIcons } from '@expo/vector-icons'; import { MaterialCommunityIcons } from '@expo/vector-icons';
import AreaComun from "./components/AreaComun";
const Stack = createNativeStackNavigator(); const Stack = createNativeStackNavigator();
const Tab = createBottomTabNavigator(); const Tab = createBottomTabNavigator();
@ -47,6 +48,7 @@ export default function App() {
}}} /> }}} />
<Stack.Screen name="Comunicados" component={HomeTab} options={{headerShown: false}} /> <Stack.Screen name="Comunicados" component={HomeTab} options={{headerShown: false}} />
<Stack.Screen name="Password" component={RecoverPassword} /> <Stack.Screen name="Password" component={RecoverPassword} />
<Stack.Screen name="area" component={AreaComun} />
</Stack.Navigator> </Stack.Navigator>

View File

@ -0,0 +1,53 @@
import React from "react";
import {
Box,
Heading,
VStack,
FormControl,
Input,
Button,
Center
} from "native-base";
export default function AreaComun({navigation}){
return (
<Center>
<Box safeArea p="2" w="90%" maxW="290" py="8">
<Heading size="lg" color="coolGray.800" _dark={{
color: "warmGray.50"
}} fontWeight="semibold">
Katoikia
</Heading>
<Heading mt="1" color="coolGray.600" _dark={{
color: "warmGray.200"
}} fontWeight="medium" size="xs">
Reserve su área común
</Heading>
<VStack space={3} mt="5">
<FormControl>
<FormControl.Label>Hora de inicio</FormControl.Label>
<Input type="text"/>
</FormControl>
<FormControl>
<FormControl.Label>Hora de finalización</FormControl.Label>
<Input type="text" />
</FormControl>
<FormControl>
<FormControl.Label>Lugar</FormControl.Label>
<Input type="text" />
</FormControl>
<Button mt="2" backgroundColor="orange.300">
Reservar
</Button>
<Button mt="6" colorScheme="error" onPress={() => navigation.navigate('Comunicados')}>
Cancelar
</Button>
</VStack>
</Box>
</Center>
)
}

View File

@ -6,8 +6,6 @@ import {
Box, Box,
Pressable, Pressable,
Spacer, Spacer,
Flex,
Center
} from "native-base"; } from "native-base";
import { MaterialCommunityIcons } from '@expo/vector-icons'; import { MaterialCommunityIcons } from '@expo/vector-icons';
export default function Home(){ export default function Home(){

View File

@ -10,7 +10,7 @@ import {
Center Center
} from "native-base"; } from "native-base";
export default function Profile(){ export default function Profile({navigation}){
return ( return (
<Center> <Center>
@ -18,25 +18,25 @@ export default function Profile(){
<Heading size="lg" color="coolGray.800" _dark={{ <Heading size="lg" color="coolGray.800" _dark={{
color: "warmGray.50" color: "warmGray.50"
}} fontWeight="semibold"> }} fontWeight="semibold">
Welcome Katoikia
</Heading> </Heading>
<Heading mt="1" color="coolGray.600" _dark={{ <Heading mt="1" color="coolGray.600" _dark={{
color: "warmGray.200" color: "warmGray.200"
}} fontWeight="medium" size="xs"> }} fontWeight="medium" size="xs">
Sign up to continue! Modifique sus datos
</Heading> </Heading>
<VStack space={3} mt="5"> <VStack space={3} mt="5">
<FormControl> <FormControl>
<FormControl.Label>Nombre</FormControl.Label> <FormControl.Label>Nombre</FormControl.Label>
<Input /> <Input type="text"/>
</FormControl> </FormControl>
<FormControl> <FormControl>
<FormControl.Label>Correo Electrónico</FormControl.Label> <FormControl.Label>Correo Electrónico</FormControl.Label>
<Input /> <Input type="text" />
</FormControl> </FormControl>
<FormControl> <FormControl>
<FormControl.Label>Teléfono</FormControl.Label> <FormControl.Label>Teléfono</FormControl.Label>
<Input type="password" /> <Input type="text" />
</FormControl> </FormControl>
<FormControl> <FormControl>
<FormControl.Label>Contraseña actual</FormControl.Label> <FormControl.Label>Contraseña actual</FormControl.Label>
@ -46,7 +46,7 @@ export default function Profile(){
<Button mt="2" backgroundColor="orange.300"> <Button mt="2" backgroundColor="orange.300">
Actualizar Actualizar
</Button> </Button>
<Button mt="6" colorScheme="error"> <Button mt="6" colorScheme="error" onPress={() => navigation.navigate('Inicio')}>
Cerrar sesión Cerrar sesión
</Button> </Button>
</VStack> </VStack>

View File

@ -133,12 +133,12 @@ export default function Reservas({navigation}) {
</Box> </Box>
</Box> </Box>
<Box height="200" w="300" shadow="2" rounded="lg" _dark={{ <Box height="200" w="300" shadow="2" rounded="lg" m='5' ml='9' _dark={{
bg: "coolGray.200:alpha.20" bg: "coolGray.200:alpha.20"
}} _light={{ }} _light={{
bg: "coolGray.200:alpha.20" bg: "coolGray.200:alpha.20"
}}> }}>
<Fab renderInPortal={false} shadow={2} size="sm" icon={<Icon color="white" as={AntDesign} name="plus" size="sm" />} /> <Fab renderInPortal={false} shadow={2} size="sm" icon={<Icon mb="0.5" as={<MaterialCommunityIcons name={'plus'} />} color="white" size="sm" />} onPress={() => navigation.navigate('area')}/>
</Box> </Box>
</ScrollView> </ScrollView>
); );