0.0.6 • Published 6 years ago

react-native-letter-spacing v0.0.6

Weekly downloads
139
License
MIT
Repository
github
Last release
6 years ago

react-native-letter-spacing

Letter spacing styled text component for iOS and Android

Installation

npm i --save react-native-letter-spacing

Note: Does not support justified texts

Usage

import MyText from 'react-native-letter-spacing';

<MyText
  letterSpacing={2}
  wordSpacing={15}
  textAlign='center'
  style={{
    fontSize: 20,
    color: '#ccc'
  }}/>

Properties

PropDescriptionDefault
letterSpacingA number to use as the margin between characters0
wordSpacingA number to use as the margin between words. Default is letterSpacing*3letterSpacing * 3 || 15
textAlign'left', 'center', or 'right'left
childrenText to be spaced.left
styleStyle for the text only (fontSize, color etc.).null
containerStyleStyle for wrapper view.null

License

MIT License. © Fazilet Cilli

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago