Socket
Socket
Sign inDemoInstall

react-useravatar-native

Package Overview
Dependencies
17
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-useravatar-native

Create a unique avatar by using username as background color


Version published
Weekly downloads
2
Maintainers
1
Install size
3.82 MB
Created
Weekly downloads
 

Readme

Source

react-user-avatar

Install

Run npm i react-useravatar --save

alt UserAvatar demo

Props

  • username string (required)

  • size integer

  • style object

  • onPress function

  • onLongPress function

  • onPressIn function

  • onPressOut function

  • textLength integer

  • textStyle object

  • textColor string

  • borderStyle boolean

Static

  • getColor function : Get color with username, ex UserAvatar.getColor("bltnico") return 044FD1

Dev and test

Install babel by npm install

And compile with babel src --out-dir lib

Babel .babelrc use es2015 and react compiler

Keywords

FAQs

Last updated on 22 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc