You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PrivacyView.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // @flow
  2. import React, { useEffect } from 'react';
  3. import JitsiScreenWebView from '../../../base/modal/components/JitsiScreenWebView';
  4. import JitsiStatusBar from '../../../base/modal/components/JitsiStatusBar';
  5. import { renderArrowBackButton }
  6. from '../../../mobile/navigation/components/welcome/functions';
  7. import { screen } from '../../../mobile/navigation/routes';
  8. import styles from '../styles';
  9. type Props = {
  10. /**
  11. * Default prop for navigating between screen components(React Navigation).
  12. */
  13. navigation: Object
  14. }
  15. /**
  16. * The URL at which the privacy policy is available to the user.
  17. */
  18. const PRIVACY_URL = 'https://jitsi.org/meet/privacy';
  19. const PrivacyView = ({ navigation }: Props) => {
  20. useEffect(() => {
  21. navigation.setOptions({
  22. headerLeft: () =>
  23. renderArrowBackButton(() =>
  24. navigation.jumpTo(screen.welcome.main))
  25. });
  26. });
  27. return (
  28. <>
  29. <JitsiStatusBar />
  30. <JitsiScreenWebView
  31. source = { PRIVACY_URL }
  32. style = { styles.screenContainer } />
  33. </>
  34. );
  35. };
  36. export default PrivacyView;