import React, { useEffect } from 'react'; import { StyleSheet } from 'react-native'; import { RouteProp, useNavigation, useRoute } from '@react-navigation/native'; import * as HeaderButton from '../containers/HeaderButton'; import Markdown from '../containers/markdown'; import SafeAreaView from '../containers/SafeAreaView'; import I18n from '../i18n'; import { E2ESaveYourPasswordStackParamList } from '../stacks/types'; import { useTheme } from '../theme'; const styles = StyleSheet.create({ container: { flex: 1, padding: 16 }, info: { fontSize: 14, marginVertical: 8 } }); const E2EHowItWorksView = (): React.ReactElement => { const { setOptions } = useNavigation(); const { colors } = useTheme(); const { params } = useRoute>(); useEffect(() => { setOptions({ title: I18n.t('How_It_Works'), headerLeft: params?.showCloseModal ? () => : undefined }); }, []); const infoStyle = [styles.info, { color: colors.bodyText }]; return ( ); }; export default E2EHowItWorksView;