vn-verdnaturachat/app/views/TermsServiceView.js

29 lines
579 B
JavaScript
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
import { WebView } from 'react-native';
import { connect } from 'react-redux';
class TermsServiceView extends React.Component {
static propTypes = {
termsService: PropTypes.string
}
static navigationOptions = () => ({
title: 'Terms of service'
});
render() {
return (
<WebView source={{ html: this.props.termsService }} />
);
}
}
function mapStateToProps(state) {
return {
termsService: state.settings.Layout_Terms_of_Service
};
}
export default connect(mapStateToProps)(TermsServiceView);