31 lines
732 B
JavaScript
31 lines
732 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { WebView, SafeAreaView } from 'react-native';
|
|
import { connect } from 'react-redux';
|
|
|
|
import styles from './Styles';
|
|
import LoggedView from './View';
|
|
|
|
@connect(state => ({
|
|
termsService: state.settings.Layout_Terms_of_Service
|
|
}))
|
|
/** @extends React.Component */
|
|
export default class TermsServiceView extends LoggedView {
|
|
static propTypes = {
|
|
termsService: PropTypes.string
|
|
}
|
|
|
|
constructor(props) {
|
|
super('TermsServiceView', props);
|
|
}
|
|
|
|
render() {
|
|
const { termsService } = this.props;
|
|
return (
|
|
<SafeAreaView style={styles.container}>
|
|
<WebView originWhitelist={['*']} source={{ html: termsService, baseUrl: '' }} />
|
|
</SafeAreaView>
|
|
);
|
|
}
|
|
}
|