0.0.4 • Published 7 years ago

react-native-morphing-text v0.0.4

Weekly downloads
10
License
MIT
Repository
github
Last release
7 years ago

React Native: Native Morphing Text

A Morphing React Native Text View. This library is a RN Bridge wrapper around lexrus/LTMorphingLabel & hanks-zyh/HTextView

Getting started

$ npm install react-native-morphing-text --save

$ react-native link react-native-morphing-text

  • Android

Please add below snippet into your app build.gradle

buildscript {
    repositories {
        jcenter()
        google()
    }
    ...
}


allprojects {
    repositories {
        mavenLocal()
        jcenter()
        google()
        ...
    }
}

This library is supported Android SDK 27 > above

  • iOS

    • Add LTMorphingLabel in Embedded Binaries & Linked Frameworks and Libraries. You can find this library from below path:

      node_modules/react-native-morphing-text/ios/LTMorphingLabel/LTMorphingLabelDemo.xcodeproj

    • Please Enable: Build Settings > Build Options > Always Embed Swift Standard Libraries to true

Usage

import RNMorphingText from 'react-native-morphing-text';

<RNMorphingText effect={"scale"}>{'Text'}</RNMorphingText>

Props

  • Scale: (iOS, Android) - Default
PropTypeDefaultNote
effectstringscaleScale Effect Type
colorstring#000000Color of font
sizenumber12Size of font
  • Evaporate: (iOS, Android)
PropTypeDefaultNote
effectstringevaporateScale Effect Type
colorstring#000000Color of font
sizenumber12Size of font
  • Fall: (iOS, Android)
PropTypeDefaultNote
effectstringfallScale Effect Type
colorstring#000000Color of font
sizenumber12Size of font
  • Pixelate: (iOS)
PropTypeDefaultNote
effectstringpixelateScale Effect Type
colorstring#000000Color of font
sizenumber12Size of font
  • Sparkle: (iOS)
PropTypeDefaultNote
effectstringsparkleScale Effect Type
colorstring#000000Color of font
sizenumber12Size of font
  • Burn: (iOS)
PropTypeDefaultNote
effectstringburnScale Effect Type
colorstring#000000Color of font
sizenumber12Size of font
  • Anvil: (iOS)
PropTypeDefaultNote
effectstringanvilScale Effect Type
colorstring#000000Color of font
sizenumber12Size of font
  • Line: (Android)
PropTypeDefaultNote
effectstringlineScale Effect Type
colorstring#000000Color of font
sizenumber12Size of font
lineColorstring#1367bcLine Color
lineWidthnumber4Width of Line
  • Typer: (Android)
PropTypeDefaultNote
effectstringtyperScale Effect Type
colorstring#000000Color of font
sizenumber12Size of font
typerSpeednumber100Speed of Typing
charIncreasenumber2Char Increase
  • Ranbow: (Android)
PropTypeDefaultNote
effectstringranbowScale Effect Type
colorarray[]Color of font
sizenumber12Size of font
colorSpacenumber150Color Space
colorSpeednumber5Speed of color changing
  • Fade: (Android)
PropTypeDefaultNote
effectstringfadeScale Effect Type
colorstring#000000Color of font
sizenumber12Size of font

Credits

Contribution

Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.

License

This library is provided under the Apache License.

RNMorphingText @ Pranav Raj Singh Chauhan

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago