import React, { useState, useEffect } from 'react'; import { Text } from 'react-native'; import { Avatar, IconButton, Card, Title, Paragraph } from 'react-native-paper'; import UserName from './UserName'; const DefaultPhoto = "https://social.emmint.com/uploads/e6f9be6d665dc43417701bf16a90122c.png"; const ProfileSmallHeader = ({ profileObj }) => { const safeProfileObj = profileObj || {}; const safeProfile = safeProfileObj.profile || {}; let photoUrl = safeProfile.photo ? 'https://social.emmint.com/' + safeProfile.photo : DefaultPhoto; return ( <> } subtitle={safeProfile.description || ""} left={(props) => } right={(props) => { }} />} /> ); } export default React.memo(ProfileSmallHeader);