jiti-meet/react/features/settings/components/native/PrivacyView.tsx

54 lines
1.2 KiB
TypeScript
Raw Normal View History

/* eslint-disable lines-around-comment */
import React, { useEffect } from 'react';
// @ts-ignore
2022-01-25 12:55:57 +00:00
import JitsiScreenWebView from '../../../base/modal/components/JitsiScreenWebView';
// @ts-ignore
2022-01-25 12:55:57 +00:00
import JitsiStatusBar from '../../../base/modal/components/JitsiStatusBar';
// @ts-ignore
2022-01-25 12:55:57 +00:00
import { renderArrowBackButton }
// @ts-ignore
2022-01-25 12:55:57 +00:00
from '../../../mobile/navigation/components/welcome/functions';
// @ts-ignore
import styles from './styles';
type Props = {
/**
* Default prop for navigating between screen components(React Navigation).
*/
navigation: Object;
};
/**
* The URL at which the privacy policy is available to the user.
*/
const PRIVACY_URL = 'https://jitsi.org/meet/privacy';
const PrivacyView = ({ navigation }: Props) => {
useEffect(() => {
// @ts-ignore
navigation.setOptions({
headerLeft: () =>
renderArrowBackButton(() =>
// @ts-ignore
navigation.goBack())
});
});
return (
<>
<JitsiStatusBar />
<JitsiScreenWebView
source = { PRIVACY_URL }
2022-01-25 12:55:57 +00:00
style = { styles.screenContainer } />
</>
);
};
export default PrivacyView;