Matchstic / nativescript-marqueelabel

Marquee effect for label

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nativescript-marqueelabel

This plugin extends the Label to allow for marquee (scrolling) text effect. It supports iOS and Android.

Android has marquee built in, for iOS https://github.com/cbpowell/MarqueeLabel/ is used.

Prerequisites / Requirements

None.

Installation

Describe your plugin installation steps. Ideally it would be something like:

tns plugin add nativescript-marqueelabel

Additional step for iOS

Copy the contents of App_Resources in the App_Resources folder of your app.

Usage

Vue

import MarqueeLabelPlugin from "nativescript-marqueelabel/vue";

Vue.use(MarqueeLabelPlugin);

Then simply change <Label></Label> to <MarqueeLabel></MarqueeLabel>

API

Currently none. PRs welcome.

Known issues

Padding and border properties do not work on iOS. For padding you can use margin instead.

About

Marquee effect for label

License:Apache License 2.0


Languages

Language:TypeScript 25.8%Language:Shell 21.3%Language:JavaScript 20.8%Language:Batchfile 17.3%Language:Swift 14.5%Language:Ruby 0.3%