blob: dbe516b4f1fabbfd0b874b06a97f64fbc9e1d657 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import React, { Component } from 'react';
import {
StyleSheet,
View,
} from 'react-native';
import HTMLView from 'react-native-htmlview'
import htmlStyles from '../components/htmlStyles'
import ScrollableContainer from '../components/scrollableContainer'
import ClearText from '../components/text'
export default class Credits extends Component {
constructor(props) {
super()
}
render() {
let body = '<p>' + this.props.content.body + '</p>'
return (
<ScrollableContainer heading='Credits'>
<View style={styles.body}>
<View style={styles.inner}>
<HTMLView value={body} stylesheet={htmlStyles} onLinkPress={this.props.onLinkPress} />
</View>
</View>
</ScrollableContainer>
)
}
}
const styles = StyleSheet.create({
body: {
maxWidth: '650px',
},
})
|