import React from 'react'; import { View, StyleSheet, Text, TextInput } from 'react-native'; import PropTypes from 'prop-types'; import I18n from '../../../i18n'; import { COLOR_WHITE, HEADER_TITLE } from '../../../constants/colors'; import sharedStyles from '../../Styles'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center' }, search: { fontSize: 20, color: COLOR_WHITE, ...sharedStyles.textRegular, marginHorizontal: 14 }, title: { fontSize: 20, ...sharedStyles.textBold, color: HEADER_TITLE, marginHorizontal: 16 } }); const Header = React.memo(({ searching, onChangeSearchText }) => { if (searching) { return ( ); } return {I18n.t('Send_to')}; }); Header.propTypes = { searching: PropTypes.bool, onChangeSearchText: PropTypes.func }; export default Header;