react-native-text-avatar

1.0.7 • Public • Published

React Native Text Avatar

Text avatar for the given string like gmail

Installation

npm install react-native-text-avatar --save
or
yarn add react-native-text-avatar

Example Usage

<TextAvatar
 backgroundColor={'#ffff00'}
 textColor={'#0000ff'}
 size={60}
 type={'circle'} // optional
>John Doe</TextAvatar>

Configuration

Property Type Default Description Example
backgroundColor string '#333' Container Background Color '#ccc'
textColor string '#fff' Text Color '#000'
size number 60 Avatar Size 100
type string none Type of Avatar Optional values are: circle, hexagon 'circle'

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i react-native-text-avatar

    Weekly Downloads

    206

    Version

    1.0.7

    License

    ISC

    Unpacked Size

    81.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • caglar