/** * AttendeesListViewController * * Yeah, I do it iOS style. Handles fetching and displaying upcoming tournaments. * * @copyright Ryan McGrath 2018. */ import React from 'react'; import {ScrollView, View, Text, StyleSheet} from 'react-native'; import Markdown from 'react-native-markdown-renderer'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import SettingsList, {Header, Item} from 'react-native-settings-list'; import styles from '../styles'; import {openURL} from '../utils'; import MemeleeViewController from './MemeleeViewController'; export default class ContactViewController extends MemeleeViewController { email = () => { openURL('mailto:' + this.props.data.email); } phone = () => { openURL('tel:' + this.props.data.phone); } twitter = () => { openURL('https://twitter.com/' + this.props.data.twitter); } render() { const s = StyleSheet.flatten(styles.tournamentDetailsEventWrapper); const ss = { itemWidth: 50, backgroundColor: s.backgroundColor, style: styles.tournamentDetailsEventWrapper, titleStyle: styles.tournamentDetailsEventItem }; return ( {this.props.data.email ? } /> : null} {this.props.data.phone ? } /> : null} {this.props.data.twitter ? } /> : null} {this.props.data.info ? {this.props.data.info} : null} ); } }