diff options
Diffstat (limited to 'client/src/lib/views/privacy.js')
| -rw-r--r-- | client/src/lib/views/privacy.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/client/src/lib/views/privacy.js b/client/src/lib/views/privacy.js new file mode 100644 index 0000000..c2d0596 --- /dev/null +++ b/client/src/lib/views/privacy.js @@ -0,0 +1,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', + }, +})
\ No newline at end of file |
