import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import I18n from '../i18n'; import sharedStyles from '../views/Styles'; import { themes } from '../lib/constants'; import { TSupportedThemes } from '../theme'; const styles = StyleSheet.create({ container: { flexDirection: 'row', alignItems: 'center', marginVertical: 24 }, line: { height: 1, flex: 1 }, text: { fontSize: 14, marginLeft: 14, marginRight: 14, ...sharedStyles.textMedium } }); interface IOrSeparator { theme: TSupportedThemes; } const OrSeparator = React.memo(({ theme }: IOrSeparator) => { const line = { backgroundColor: themes[theme].strokeLight }; const text = { color: themes[theme].fontSecondaryInfo }; return ( {I18n.t('OR')} ); }); export default OrSeparator;