blob: c2d0596cf2628b34202f058c714b30bbfd4872ff (
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
|
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 Privacy extends Component {
constructor(props) {
super()
}
render() {
let body = '<p>' + this.props.content.body + '</p>'
return (
<ScrollableContainer heading='Privacy Policy'>
<View style={styles.body}>
<HTMLView value={body} stylesheet={htmlStyles} onLinkPress={this.props.onLinkPress} />
</View>
</ScrollableContainer>
)
}
}
const styles = StyleSheet.create({
body: {
width: '90%',
maxWidth: '650px',
},
})
|