Port for gridy-avatars
yarn add react-native-dynamic-avatar
import generate from 'react-native-dynamic-avatar'
export default function App () {
const avatar = generate([0, 0, 0, 0, 0, 0], 128)
// body type 0-7 --------^ | | | | | ^------- SVG size
// body color 0-7 ----------^ | | | ^------- mouth color 0-7
// eye type 0-7 ---------------^ | ^ --------- mouth type 0-7
// eye color 0-7 -----------------^
return (
<View>
{avatar}
</View>
)
}
See example.tsx for source of demo gif