2021-11-11 14:32:56 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React, { useEffect } from 'react';
|
|
|
|
|
2022-01-25 12:55:57 +00:00
|
|
|
import JitsiScreenWebView from '../../../base/modal/components/JitsiScreenWebView';
|
|
|
|
import JitsiStatusBar from '../../../base/modal/components/JitsiStatusBar';
|
|
|
|
import { renderArrowBackButton }
|
|
|
|
from '../../../mobile/navigation/components/welcome/functions';
|
|
|
|
import { screen } from '../../../mobile/navigation/routes';
|
|
|
|
import styles from '../styles';
|
2021-11-11 14:32:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 }: Props) => {
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
navigation.setOptions({
|
|
|
|
headerLeft: () =>
|
|
|
|
renderArrowBackButton(() =>
|
2022-06-09 14:23:56 +00:00
|
|
|
navigation.navigate(screen.welcome.main))
|
2021-11-11 14:32:56 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<JitsiStatusBar />
|
|
|
|
<JitsiScreenWebView
|
|
|
|
source = { TERMS_URL }
|
2022-01-25 12:55:57 +00:00
|
|
|
style = { styles.screenContainer } />
|
2021-11-11 14:32:56 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default TermsView;
|