import React from 'react'; import {ProfilePreviewType, PreviewType, ScreenType} from '../../types'; import ProfilePreview from '../profile/ProfilePreview'; import {StyleSheet, View} from 'react-native'; interface SearchResultsProps { results: Array; previewType: PreviewType; screenType: ScreenType; } const SearchResults: React.FC = ({ results, previewType, screenType, }) => { return ( {results.map((profilePreview) => ( ))} ); }; const styles = StyleSheet.create({ container: {flexDirection: 'row', flexWrap: 'wrap'}, result: { marginVertical: 10, }, }); export default SearchResults;