49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
/* eslint-disable lines-around-comment */
|
|
|
|
import React, { useEffect } from 'react';
|
|
|
|
// @ts-ignore
|
|
import JitsiScreenWebView from '../../../base/modal/components/JitsiScreenWebView';
|
|
// @ts-ignore
|
|
import { renderArrowBackButton }
|
|
// @ts-ignore
|
|
from '../../../mobile/navigation/components/welcome/functions';
|
|
|
|
// @ts-ignore
|
|
import styles from './styles';
|
|
|
|
|
|
interface IProps {
|
|
|
|
/**
|
|
* Default prop for navigating between screen components(React Navigation).
|
|
*/
|
|
navigation: Object;
|
|
}
|
|
|
|
/**
|
|
* The URL at which the terms (of service/use) are available to the user.
|
|
*/
|
|
const TERMS_URL = 'https://jitsi.org/meet/terms';
|
|
|
|
const TermsView = ({ navigation }: IProps) => {
|
|
|
|
useEffect(() => {
|
|
// @ts-ignore
|
|
navigation.setOptions({
|
|
headerLeft: () =>
|
|
renderArrowBackButton(() =>
|
|
// @ts-ignore
|
|
navigation.goBack())
|
|
});
|
|
});
|
|
|
|
return (
|
|
<JitsiScreenWebView
|
|
source = { TERMS_URL }
|
|
style = { styles.screenContainer } />
|
|
);
|
|
};
|
|
|
|
export default TermsView;
|