2017-11-13 13:32:46 +00:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
2018-08-01 19:35:06 +00:00
|
|
|
import { WebView, SafeAreaView } from 'react-native';
|
2017-11-13 13:32:46 +00:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
2018-08-01 19:35:06 +00:00
|
|
|
import styles from './Styles';
|
|
|
|
|
2018-07-10 13:40:32 +00:00
|
|
|
@connect(state => ({
|
|
|
|
termsService: state.settings.Layout_Terms_of_Service
|
|
|
|
}))
|
|
|
|
export default class TermsServiceView extends React.PureComponent {
|
2017-11-13 13:32:46 +00:00
|
|
|
static propTypes = {
|
|
|
|
termsService: PropTypes.string
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2018-08-01 19:35:06 +00:00
|
|
|
<SafeAreaView style={styles.container}>
|
|
|
|
<WebView originWhitelist={['*']} source={{ html: this.props.termsService, baseUrl: '' }} />
|
|
|
|
</SafeAreaView>
|
2017-11-13 13:32:46 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|