rn-customize-avatar
Version:
This package is inspired by whatsapp, instagram custom avatar. You can customize your own avatar and use as a profile in your project
80 lines (77 loc) • 2.22 kB
TypeScript
import {SkSVG} from '@shopify/react-native-skia';
export interface AvatarsTypes {
style?: ('circle' | 'default')[];
clothing?: ('blazerAndShirt' | 'blazerAndSweater' | 'collarAndSweater' | 'graphicShirt' | 'hoodie' | 'overall' | 'shirtCrewNeck' | 'shirtScoopNeck' | 'shirtVNeck')[];
mouth?: ('concerned' | 'default' | 'disbelief' | 'eating' | 'grimace' | 'sad' | 'screamOpen' | 'serious' | 'smile' | 'tongue' | 'twinkle' | 'vomit')[];
nose?: 'default'[];
eyes?: ('closed' | 'cry' | 'default' | 'eyeRoll' | 'happy' | 'hearts' | 'side' | 'squint' | 'surprised' | 'winkWacky' | 'wink' | 'xDizzy')[];
eyebrows?: (
| 'angryNatural'
| 'defaultNatural'
| 'flatNatural'
| 'frownNatural'
| 'raisedExcitedNatural'
| 'sadConcernedNatural'
| 'unibrowNatural'
| 'upDownNatural'
| 'angry'
| 'default'
| 'raisedExcited'
| 'sadConcerned'
| 'upDown'
)[];
top?: (
| 'eyepatch'
| 'hat'
| 'hijab'
| 'turban'
| 'winterHat1'
| 'winterHat02'
| 'winterHat03'
| 'winterHat04'
| 'bob'
| 'bun'
| 'curly'
| 'curvy'
| 'dreads'
| 'frida'
| 'fro'
| 'froBand'
| 'longButNotTooLong'
| 'miaWallace'
| 'shavedSides'
| 'straight02'
| 'straight01'
| 'straightAndStrand'
| 'dreads01'
| 'dreads02'
| 'frizzle'
| 'shaggy'
| 'shaggyMullet'
| 'shortCurly'
| 'shortFlat'
| 'shortRound'
| 'shortWaved'
| 'sides'
| 'theCaesar'
| 'theCaesarAndSidePart'
| 'bigHair'
)[];
topProbability?: number;
facialHair?: ('beardLight' | 'beardMagestic' | 'beardMedium' | 'moustacheFancy' | 'moustacheMagnum')[];
facialHairProbability?: number;
accessories?: ('kurt' | 'prescription01' | 'prescription02' | 'round' | 'sunglasses' | 'wayfarers')[];
accessoriesProbability?: number;
clothingGraphic?: ('bat' | 'bear' | 'cumbia' | 'deer' | 'diamond' | 'hola' | 'pizza' | 'resist' | 'skull' | 'skullOutline')[];
accessoriesColor?: string[];
clothesColor?: string[];
hatColor?: string[];
hairColor?: string[];
skinColor?: string[];
facialHairColor?: string[];
backgroundColor?: string[];
}
export interface Item {
svg: SkSVG;
value: string;
}