1.0.4 • Published 5 years ago

useravatar-react-native v1.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

React Native UserAvatar

A bare-bones user avatar display with support for falling back to using the user's initials on a colored background as the avatar. Based on the great library for React: https://github.com/mahendramahi/useravatar-react-native, and ported to React Native.

Installation

npm install --save useravatar-react-native or yarn add useravatar-react-native

Usage

   <UserAvatar
        src={'https://picsum.photos/200'}
        name={'User Name'}
        size={35}
      />

      <UserAvatar
        src={'https://truworth-video-in.s3-ap-south-1.amazonaws.com/foodimage/initial-image.png'}
        name={'User Name'}
        size={35}
      />

Handle onError of image

if You have urls which is give xml or AccessDenied like this:- this npm module support it and render initials or user name.

Credits

@https://github.com/mahendramahi

##License

MIT

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago