import React from 'react'; import { StyleSheet } from 'react-native'; import SafeAreaView from '../containers/SafeAreaView'; import { themes } from '../lib/constants'; import * as HeaderButton from '../containers/HeaderButton'; import Markdown from '../containers/markdown'; import { withTheme } from '../theme'; import I18n from '../i18n'; import { E2ESaveYourPasswordStackParamList } from '../stacks/types'; import { IBaseScreen } from '../definitions'; const styles = StyleSheet.create({ container: { flex: 1, padding: 44, paddingTop: 32 }, info: { fontSize: 14, marginVertical: 8 } }); type TE2EHowItWorksViewProps = IBaseScreen; class E2EHowItWorksView extends React.Component { static navigationOptions = ({ route, navigation }: Pick) => { const showCloseModal = route.params?.showCloseModal; return { title: I18n.t('How_It_Works'), headerLeft: showCloseModal ? () => : undefined }; }; render() { const { theme } = this.props; const infoStyle = [styles.info, { color: themes[theme].bodyText }]; return ( ); } } export default withTheme(E2EHowItWorksView);