react-native-personas-avatar
react-native-personas-avatar copied to clipboard
A playful avatar generator for the modern age https://personas.draftbit.com/
react-native-personas-avatar
An unofficial React Native library to generate playfull avatar by https://personas.draftbit.com/
![]()
Getting started
This library use react-native-svg to render avatar
yarn add react-native-svg
yarn add react-native-personas-avatar
Props
-
characters: used to generate the avatar with predefined characters. This value will be returned byonNewCharacters. If null, a random avatar will be generated -
onNewCharacters: If a new avatar created. It will return characters string to be used withcharactersprop above.
Usage
import { PersonasAvatar } from 'react-native-personas-avatar';
// Render random avatar
<PersonasAvatar
style={{
width: 200,
height: 200
}}
/>