Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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