Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-marquee

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-marquee

React Native Marquee Text Component

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
866
decreased by-10.54%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-marquee

A pure JavaScript marquee text component for react native.

Showcase

This app is available on Android and iOS.

feedyourmusic

Installation

npm install --save react-native-marquee
or
yarn add react-native-marquee

Usage

import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import MarqueeText from 'react-native-marquee';

export default class MarqueeTextSample extends Component {
  render() {
    return (
      <View style={styles.container}>
        <MarqueeText
          style={{ fontSize: 24 }}
          duration={3000}
          marqueeOnStart
          loop
          marqueeDelay={1000}
          marqueeResetDelay={1000}
        >
          Lorem Ipsum is simply dummy text of the printing and typesetting industry and typesetting industry.
        </MarqueeText>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
  },
});

Properties

PropTypeOptionalDefaultDescription
styleStyleObjtrue-text style
durationnumbertrue3000Number of milliseconds until animation finishes from start.
loopbooleantruefalseSet this true when animation repeats.
marqueeOnStartbooleantruefalseSet this true while waiting for new data from a refresh.
marqueeResetDelaynumbertrue0Number of milliseconds to wait before resetting the marquee position after it finishes.
marqueeDelaynumbertrue0Number of milliseconds to wait before starting or restarting marquee.
onMarqueeCompletefunctiontrue-Callback function for when the marquee completes its animation
useNativeDriverbooleantruefalseSet this truen if you want to use native driver

Methods

These methods are optional, you can use the isOpen property instead

PropParamsDescription
startAnimationdelayStart animation
stopAnimation-Stop animation

Contribution

Do you have any idea or want to change something? Just open an issue. Contributions are always welcome.

Lisence

MIT Lisence

Keywords

FAQs

Package last updated on 19 Sep 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc