README.md

July 18, 2020 ยท View on GitHub

Scale
LTMorphingLabel

Evaporate
LTMorphingLabel-Evaporate

Fall
LTMorphingLabel-Fall

Pixelate
LTMorphingLabel-Pixelate

Sparkle
LTMorphingLabel-Sparkle

Burn
LTMorphingLabel-Burn

Anvil
LTMorphingLabel-Anvil

Line

Typer

Ranbow

Fade

PRs Welcome

ReactNative: Native Morphing Text (Android/iOS): Deprecated

Due to time constraint, this library is deprecated and not maintained anymore, You can still use this library.

If this project has helped you out, please support us with a star ๐ŸŒŸ

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

๐Ÿค” How to contribute

Have an idea? Found a bug? Please raise to ISSUES. Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.

๐Ÿ’ซ Where is this library used?

If you are using this library in one of your projects, add it in this list below. โœจ

๐Ÿ“œ License

This library is provided under the Apache 2 License.

RNMorphingText @ prscX

๐Ÿ’– Support my projects

I open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

  • Starring and sharing the projects you like ๐Ÿš€

  • If you're feeling especially charitable, please follow prscX on GitHub.

    Buy Me A Coffee

    Thanks! โค๏ธ
    prscX.github.io
    </ Pranav >