Browse Source

Se puede navegar al mapa

ErnestoOrtiz2 2 years ago
parent
commit
a30a815beb
2 changed files with 6 additions and 2 deletions
  1. 1
    1
      screens/main/Map.js
  2. 5
    1
      screens/main/StateTime.js

+ 1
- 1
screens/main/Map.js View File

@@ -1,6 +1,6 @@
1 1
 import * as React from 'react';
2 2
 import MapView, { Marker } from 'react-native-maps';
3
-import { StyleSheet, Text, View, Dimensions } from 'react-native';
3
+import { StyleSheet, Text, View, Dimensions, Pressable } from 'react-native';
4 4
 
5 5
 export default function Map() {
6 6
   const [pin, setPin] = React.useState({

+ 5
- 1
screens/main/StateTime.js View File

@@ -1,7 +1,7 @@
1 1
 import React from "react";
2 2
 import firebase from "firebase";
3 3
 import { Component } from "react";
4
-import { TouchableWithoutFeedback, ImageBackground, Text } from "react-native";
4
+import { TouchableWithoutFeedback, ImageBackground, Text, Button } from "react-native";
5 5
 import { styles } from "../../config/styles";
6 6
 import CustomButton from "../../components/CustomButton";
7 7
 
@@ -47,6 +47,10 @@ render(){
47 47
   <TouchableWithoutFeedback style={styles.stdcontainer}>
48 48
     <ImageBackground style={styles.regcontainer} source={require('../../assets/yellow-white.jpg')}>
49 49
     <Text style={styles.stdcontainer}> Please select a time frame for the appointment</Text>
50
+    <Button
51
+        title ='Ver mapa'
52
+        onPress= {() => this.props.navigation.navigate('Map')}
53
+      />
50 54
     <CustomButton marginTop={25} title="8:00am-9:00am" onPress={() => this.time_assignment(1,)}/>
51 55
     
52 56
     </ImageBackground>