@12stonechurch/react-native-material-initials

2.4.161049 • Public • Published

React Native Material Initials

react-native-material-initials

Usage

<MaterialInitials
  style={{alignSelf: 'center'}}
  backgroundColor={'red'}
  color={'white'}
  size={100}
  text={'John Doe'}
  single={false}
/>

Installation

$ npm install --save @12stonechurch/react-native-material-initials

React Native

import MaterialInitials from '@12stonechurch/react-native-material-initials/native';

Props

Key Type Description
text String The text to use to make initials
size Number The pixel height / width of the icon
color String Override the text color with any valid CSS color value
single Boolean Whether to only use a single initial or two
backgroundColor String Override the background color with any valid CSS color value

Package Sidebar

Install

npm i @12stonechurch/react-native-material-initials

Weekly Downloads

3

Version

2.4.161049

License

none

Unpacked Size

3.29 kB

Total Files

3

Last publish

Collaborators

  • lisahuff
  • shontzomania
  • kkmatt11