@12stonechurch/react-native-material-initials 中文文档教程

发布于 3年前 浏览 21 项目主页 更新于 3年前

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

KeyTypeDescription
textStringThe text to use to make initials
sizeNumberThe pixel height / width of the icon
colorStringOverride the text color with any valid CSS color value
singleBooleanWhether to only use a single initial or two
backgroundColorStringOverride the background color with any valid CSS color value

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

KeyTypeDescription
textStringThe text to use to make initials
sizeNumberThe pixel height / width of the icon
colorStringOverride the text color with any valid CSS color value
singleBooleanWhether to only use a single initial or two
backgroundColorStringOverride the background color with any valid CSS color value
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文