import React from 'react'; import PropTypes from 'prop-types'; import SearchBox from '../../../containers/SearchBox'; import { isIOS } from '../../../utils/deviceInfo'; import { withTheme } from '../../../theme'; const SearchBar = React.memo(({ theme, onChangeSearchText, inputRef, searching, onCancelSearchPress, onSearchFocus }) => { if (isIOS) { return ( ); } return null; }); SearchBar.propTypes = { theme: PropTypes.string, searching: PropTypes.bool, inputRef: PropTypes.func, onChangeSearchText: PropTypes.func, onCancelSearchPress: PropTypes.func, onSearchFocus: PropTypes.func }; export default withTheme(SearchBar);