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.
Requiredsource
| Type |
|---|
| ImageSource |
size
Width and height of the avatar.
| Type | Default |
|---|---|
| number | 100 |
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
| Type | Default |
|---|---|
| string | 'From Gallery' |
fromCameraText
| Type | Default |
|---|---|
| string | 'From Camera' |
title
| Type | Default |
|---|---|
| string | 'Change Avatar' |
style
| Type |
|---|
| View Style |