Skip to main content

AvatarEdit

AvatarEdits enable users to upload a new profile picture, or edit their current profile picture.

Import

import { AvatarEdit } from '@nomada-sh/react-native-eyecandy';

Example

Props

Pressable Props

Inherits Pressable Props.


Required
source

Type
ImageSource

size

Width and height of the avatar.

TypeDefault
number100

onChange

(source: ImageSource | undefined, error: {
code: number;
message: string;
} | undefined) => void;
Type
function
  • 'source' (ImageSource): The new image source of the avatar.
  • 'error' (object): The error object if the image source is invalid.

fromGalleryText

TypeDefault
string'From Gallery'

fromCameraText

TypeDefault
string'From Camera'

title

TypeDefault
string'Change Avatar'

style

Type
View Style