npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pinkpanda-bigheads

v1.0.0

Published

Big Heads avatars for React Native

Downloads

2

Readme

react-native-bigheads-web


A 1-to-1 lib that reproduces what we have in the react native version of the PinkPanda app.

This was needed because we have some other accessories that are not in the original Big Heads library on the web.

BigHeads avatars for React Native. Based on @bigheads/core

Getting Started

install dependencies

yarn add react-native-bigheads react-native-svg

or

npm install react-native-bigheads react-native-svg --save

This package requires react-native-svg to be installed

Aditional steps in iOS

cd ios && pod install

usage

import the BigHead component from react-native-bigheads

import { BigHead } from 'react-native-bigheads'

use the BigHead component like this:

<BigHead
  accessory="shades"
  bgColor="blue"
  bgShape="circle"
  body="chest"
  clothing="tankTop"
  clothingColor="black"
  eyebrows="angry"
  eyes="wink"
  facialHair="mediumBeard"
  graphic="vue"
  hair="short"
  hairColor="black"
  hat="none"
  hatColor="green"
  lashes={false}
  lipColor="purple"
  mouth="open"
  showBackground={true}
  size={300}
  skinTone="brown"
/>

Props

Reference

Props

accessory

Type of accessory

| Type | Required | Default | | -------- | -------- | ------- | | enum('none', 'roundGlasses', 'tinyGlasses', 'shades', 'faceMask', 'hoopEarrings') | No | Random |


bgColor

The color of the background

| Type | Required | Default | | -------- | -------- | ------- | | enum('blue', 'green', 'red', 'orange', 'yellow', 'turqoise', 'pink', 'purple') | No | Random |


bgShape

The shape of the background

| Type | Required | Default | | -------- | -------- | ------- | | enum('circle', 'square', 'squircle') | No | Random |


body

Type of body

| Type | Required | Default | | -------- | -------- | ------- | | enum('chest', 'breasts') | No | Random |


clothing

Type of cloth

| Type | Required | Default | | -------- | -------- | ------- | | enum('naked', 'shirt', 'dressShirt', 'vneck', 'tankTop', 'dress', 'denimJacket', 'hoodie', 'chequeredShirt', 'chequeredShirtDark') | No | Random |


clothingColor

The color of the clothes

| Type | Required | Default | | -------- | -------- | ------- | | enum('white', 'blue', 'black', 'green', 'red') | No | Random |


containerProps

Props to be passed to the container element (View)

| Type | Required | | -------- | -------- | | View.props | No |


containerStyles

Styles to be applied to the container element (View)

| Type | Required | | -------- | -------- | | Style | No |


eyebrows

Type of eyebrows

| Type | Required | Default | | -------- | -------- | ------- | | enum('raised', 'leftLowered', 'serious', 'angry', 'concerned') | No | Random |


eyes

Type of eyes

| Type | Required | Default | | -------- | -------- | ------- | | enum('normal', 'leftTwitch', 'happy', 'content', 'squint', 'simple', 'dizzy', 'wink', 'hearts', 'crazy', 'cute', 'dollars', 'stars', 'cyborg', 'simplePatch', 'piratePatch') | No | Random |


facialHair

Type of facial hair

| Type | Required | Default | | -------- | -------- | ------- | | enum('none', 'stubble', 'mediumBeard', 'goatee') | No | Random |


graphic

Type of graphic over the t-shirts

| Type | Required | Default | | -------- | -------- | ------- | | enum('none', 'redwood', 'gatsby', 'vue', 'react', 'graphQL', 'donut', 'rainbow') | No | Random |


hair

Type of hair

| Type | Required | Default | | -------- | -------- | ------- | | enum('none', 'long', 'bun', 'short', 'pixie', 'balding', 'buzz', 'afro', 'bob', 'mohawk') | No | Random |


hairColor

The color of the hair

| Type | Required | Default | | -------- | -------- | ------- | | enum('blonde', 'orange', 'black', 'white', 'brown', 'blue', 'pink') | No | Random |


hat

Type of hat

| Type | Required | Default | | -------- | -------- | ------- | | enum('none', 'beanie', 'turban', 'party', 'hijab') | No | Random |


hatColor

The color of the hat

| Type | Required | Default | | -------- | -------- | ------- | | enum('white', 'blue', 'black', 'green', 'red') | No | Random |


lashes

Show lashes

| Type | Required | Default | | -------- | -------- | ------- | | boolean | No | Random |


lipColor

The color of the lips

| Type | Required | Default | | -------- | -------- | ------- | | enum('red', 'purple', 'pink', 'turqoise', 'green') | No | Random |


mouth

Type of mouth

| Type | Required | Default | | -------- | -------- | ------- | | enum('grin', 'sad', 'openSmile', 'lips', 'open', 'serious', 'tongue', 'piercedTongue', 'vomitingRainbow') | No | Random |


showBackground

Whether or not to display the background color

When true it cuts off everything below the avatar otherwise it won't clip off any of the avatar

| Type | Required | Default | | -------- | -------- | ------- | | boolean | No | true |


size

Size of the avatar

| Type | Required | Default | | -------- | -------- | ------- | | number | No | 100 |


skinTone

The color of the skin

| Type | Required | Default | | -------- | -------- | ------- | | enum('light', 'yellow', 'brown', 'dark', 'red', 'black') | No | Random |


Authors

Changelog

Learn about the latest improvements

License

This project is licensed under the MIT License - see the LICENSE file for details

Contributing

Please see the Contributing Guidelines.