You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-native-marquee-label

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-marquee-label

A marquee label for react-native

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
15
150%
Maintainers
1
Weekly downloads
 
Created
Source

React Native RefreshableListView

A marquee label for react-native

Installation

npm install react-native-marquee-label --save

ios

Drag RCTMarqueeLabel.xcodeproj to your project on Xcode. Click on your main project file (the one that represents the .xcodeproj) select Build Phases and drag libRCTMarqueeLabel.a from the Products folder inside the RCTRefreshControl.xcodeproj.

android

come soon

Usage

Example

'use strict';

var React = require('react-native');
var {
    StyleSheet,
    View
} = React;

var MarqueeLabel = require('react-native-marquee-label');
module.exports = React.createClass({
    render: function() {
        return (
            <View style={styles.container}>
                <MarqueeLabel style={styles.marqueeLabel}
                     text="fangyunjiang is a good developer"
                     marqueeType="MLContinuous"
                     scrollDuration={3.0}
                     fadeLength={0.0}
                     leadingBuffer={0.0}
                     trailingBuffer={50}
                     textColor='red'
                     font={{fontSize:80, fontWeight: 0.4}}
                     />
            </View>
        );
    }
});

var styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: '#F5FCFF',
    },

    marqueeLabel: {
        backgroundColor: '#FFFFE0',
        width:200,
        height:140
    }
});

Screencasts

loading

Props

  • text : PropTypes.string.isRequired
  • marqueeType : PropTypes.number
  • scrollDuration : PropTypes.number
  • fadeLength : PropTypes.number
  • leadingBuffer : PropTypes.number
  • trailingBuffer : PropTypes.number
  • textColor : PropTypes.string
  • font: PropTypes.string

Keywords

react-native

FAQs

Package last updated on 04 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts