import React from 'react'; import PropTypes from 'prop-types'; import { Image, TouchableOpacity, View } from 'react-native'; import { Icon } from 'react-native-elements'; import styles from './UserProfileButton.styles.js'; export default function UserProfileButton({ avatarUrl, navigation }) { const _goToProfile = () => { navigation.navigate('Profile'); return false; }; return ( {avatarUrl !== null ? ( ) : ( )} ); } UserProfileButton.propTypes = { avatarUrl: PropTypes.string, }; UserProfileButton.propTypes = { avatarUrl: null, };