More fixes/patches
This commit is contained in:
parent
1f90ca2575
commit
c02ad19f2b
18 changed files with 582 additions and 239 deletions
28
controllers/GenericInfoViewController.js
Normal file
28
controllers/GenericInfoViewController.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* AttendeesListViewController
|
||||
*
|
||||
* Yeah, I do it iOS style. Handles fetching and displaying upcoming tournaments.
|
||||
*
|
||||
* @copyright Ryan McGrath 2018.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import {ScrollView, View} from 'react-native';
|
||||
import Markdown from 'react-native-markdown-renderer';
|
||||
import Hyperlink from 'react-native-hyperlink';
|
||||
|
||||
import styles from '../styles';
|
||||
import Constants from '../utils/Constants';
|
||||
import MemeleeViewController from './MemeleeViewController';
|
||||
|
||||
export default class GenericInfoViewController extends MemeleeViewController {
|
||||
render = () => (<ScrollView>
|
||||
<View style={styles.tournamentDetailsTextWrapper}>
|
||||
<Hyperlink>
|
||||
<Markdown style={styles.tournamentDetailsText}>
|
||||
{this.props.info && this.props.info !== '' ? this.props.info : ''}
|
||||
</Markdown>
|
||||
</Hyperlink>
|
||||
</View>
|
||||
</ScrollView>);
|
||||
}
|
||||
Reference in a new issue