Back

can't acsses the avatar

  • 0
  • React Native
  • Avatars
  • Auth
ned1234567
7 Oct, 2024, 17:41

Hey, i'm trying to get the avatar picture this is the code

TypeScript
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 Profile
TL;DR
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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more