Reference Source

src/components/views/helpers/privacypolicy.js

  1. import React, { Component } from 'react';
  2. import { ScrollView, Dimensions } from 'react-native';
  3. import HTML from 'react-native-render-html';
  4.  
  5. import PrivacyPolicyHTML from '../../../assets/static/pedal-patrol-privacy-policy';
  6.  
  7. /**
  8. * Class for displaying the privacy policy as html.
  9. */
  10. class PrivacyPolicy extends Component {
  11. /**
  12. * Renders the privacy policy as HTML.
  13. */
  14. render () {
  15. return (
  16. <ScrollView style={{ flex: 1 }}>
  17. <HTML html={PrivacyPolicyHTML.PrivacyPolicyHTML} imagesMaxWidth={Dimensions.get('window').width} containerStyle={{marginLeft: 15, marginRight: 15}} />
  18. </ScrollView>
  19. );
  20. }
  21. }
  22.  
  23. export default PrivacyPolicy;