jiti-meet/react/features/welcome/components/native/PrivacyView.js

47 lines
1.1 KiB
JavaScript
Raw Normal View History

// @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';
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(() => {
navigation.setOptions({
headerLeft: () =>
renderArrowBackButton(() =>
2022-06-09 14:23:56 +00:00
navigation.navigate(screen.welcome.main))
});
});
return (
<>
<JitsiStatusBar />
<JitsiScreenWebView
source = { PRIVACY_URL }
2022-01-25 12:55:57 +00:00
style = { styles.screenContainer } />
</>
);
};
export default PrivacyView;