import React from 'react'; import { View, StyleSheet, Text } from 'react-native'; import PropTypes from 'prop-types'; import I18n from '../i18n'; import sharedStyles from '../views/Styles'; import { themes } from '../constants/colors'; 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 } }); const OrSeparator = React.memo(({ theme }) => { const line = { backgroundColor: themes[theme].borderColor }; const text = { color: themes[theme].auxiliaryText }; return ( {I18n.t('OR')} ); }); OrSeparator.propTypes = { theme: PropTypes.string }; export default OrSeparator;