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.

TermsView.tsx 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 JitsiStatusBar from '../../../base/modal/components/JitsiStatusBar';
  7. // @ts-ignore
  8. import { renderArrowBackButton }
  9. // @ts-ignore
  10. from '../../../mobile/navigation/components/welcome/functions';
  11. // @ts-ignore
  12. import styles from './styles';
  13. interface IProps {
  14. /**
  15. * Default prop for navigating between screen components(React Navigation).
  16. */
  17. navigation: Object;
  18. }
  19. /**
  20. * The URL at which the terms (of service/use) are available to the user.
  21. */
  22. const TERMS_URL = 'https://jitsi.org/meet/terms';
  23. const TermsView = ({ navigation }: IProps) => {
  24. useEffect(() => {
  25. // @ts-ignore
  26. navigation.setOptions({
  27. headerLeft: () =>
  28. renderArrowBackButton(() =>
  29. // @ts-ignore
  30. navigation.goBack())
  31. });
  32. });
  33. return (
  34. <>
  35. <JitsiStatusBar />
  36. <JitsiScreenWebView
  37. source = { TERMS_URL }
  38. style = { styles.screenContainer } />
  39. </>
  40. );
  41. };
  42. export default TermsView;