import React, { Component } from 'react'; import { View, Text, Image, Linking, StyleSheet, TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; class MyAbout extends Component { handleClick(url) { Linking.canOpenURL(url).then(supported => { if (supported) { Linking.openURL(url); } else { console.log('Don\'t know how to open URI: ', url); } }); } render() { const casa = require('../../img/casa.png'); const { textColor, viewStyle, iconStyle } = styles; return ( ESPECIFICOS Buenos Aires this.handleClick('geo:-34.60761,-58.437967')} > Leopoldo Marechal 914, CABA, Argentina. this.handleClick('tel:+541141396860')} > +5411 4139-6860/1 +5411 4982-2892 Abierto Lunes a Viernes 9 a 18 horas. ); } } const styles = StyleSheet.create({ viewStyle: { flexDirection: 'row', alignItems: 'center', }, iconStyle: { margin: 5, marginRight: 10 }, textColor: { color: '#6281A2' } }); export default MyAbout;