2017-11-13 13:32:46 +00:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { WebView } from 'react-native';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
2018-06-01 17:38:13 +00:00
|
|
|
class PrivacyPolicyView extends React.PureComponent {
|
2017-11-13 13:32:46 +00:00
|
|
|
static propTypes = {
|
|
|
|
privacyPolicy: PropTypes.string
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<WebView source={{ html: this.props.privacyPolicy }} />
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function mapStateToProps(state) {
|
|
|
|
return {
|
|
|
|
privacyPolicy: state.settings.Layout_Privacy_Policy
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(PrivacyPolicyView);
|