// @flow import * as React from 'react'; import {Image, ScrollView, View} from 'react-native'; import ThemeManager from "../utils/ThemeManager"; import HTML from "react-native-render-html"; import {Linking} from "expo"; import PlanningEventManager from '../utils/PlanningEventManager'; import {Card} from 'react-native-paper'; type Props = { navigation: Object, route: Object }; function openWebLink(event, link) { Linking.openURL(link).catch((err) => console.error('Error opening link', err)); } /** * Class defining an about screen. This screen shows the user information about the app and it's author. */ export default class PlanningDisplayScreen extends React.Component { displayData = this.props.route.params['data']; render() { // console.log("rendering planningDisplayScreen"); return ( {this.displayData.logo !== null ? : } {this.displayData.description !== null ? // Surround description with div to allow text styling if the description is not html " + this.displayData.description + ""} tagsStyles={{ p: {color: ThemeManager.getCurrentThemeVariables().text,}, div: {color: ThemeManager.getCurrentThemeVariables().text} }} onLinkPress={openWebLink}/> : } ); } }