ned1234567Original post
Apple Developer
Hey, i'm trying to get the avatar picture
this is the code
JavaScript
import { StyleSheet, Text, View, Image } from 'react-native'import React from 'react'
const Profile = () => { return ( <View> <Text>Profile</Text> <Image source={{ uri: avatar }} /> </View> )}
export default ProfileSummary
Developers are having trouble accessing the avatar picture in their code. The issue is caused by not properly defining the 'avatar' variable. The solution is to make sure that 'avatar' is properly defined or passed as a prop.