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
 import * as React from 'react';
1
 import * as React from 'react';
2
 import MapView, { Marker } from 'react-native-maps';
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
 export default function Map() {
5
 export default function Map() {
6
   const [pin, setPin] = React.useState({
6
   const [pin, setPin] = React.useState({

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

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