import React from 'react'; import {View, Text, ScrollView, StyleSheet} from 'react-native'; import SuggestedUser from './SuggestedUser'; /** * Search Screen for user recommendations and a search * tool to allow user to find other users */ interface SuggestedSectionProps { title: string; users: Array; } const SuggestedSection: React.FC = ({title, users}) => { return ( {title} {users.map((name, key) => ( ))} ); }; const styles = StyleSheet.create({ container: { marginBottom: 30, }, header: { fontWeight: '600', fontSize: 20, color: '#fff', marginBottom: 20, }, user: { marginHorizontal: 15, }, }); export default SuggestedSection;