Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

TermsView.tsx 1.1KB

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 terms (of service/use) are available to the user.
  19. */
  20. const TERMS_URL = 'https://jitsi.org/meet/terms';
  21. const TermsView = ({ 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 = { TERMS_URL }
  34. style = { styles.screenContainer } />
  35. );
  36. };
  37. export default TermsView;