Socket
Socket
Sign inDemoInstall

@leeseungun/react-native-marquee

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @leeseungun/react-native-marquee

React Native Marquee Text Component


Version published
Maintainers
1
Created

Readme

Source

0strich Fork Version

react-native-marquee

A pure JavaScript marquee text component for react native.

Installation

npm install --save @leeseungun/react-native-marquee
or
yarn add @leeseungun/react-native-marquee

Usage

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

export default class MarqueeTextSample extends Component {
  render() {
    return (
      <View style={styles.container}>
        <MarqueeText
          style={{ fontSize: 24 }}
          speed={1}
          marqueeOnStart={true}
          loop={true}
          delay={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

MarqueeText component basically inherits TextProps and the followings are additional ones:

PropTypeOptionalDefaultDescription
marqueeOnStartbooleantruetrueA flag whether to start marquee animation right after render
speednumbertrue1Speed calculated as pixels/second
loopbooleantruetrueA flag whether to loop marquee animation or not
delaynumbertrue0Duration to delay the animation after render, in milliseconds
onMarqueeCompletefunctiontruevoidA callback for when the marquee finishes animation and stops

Methods

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

PropParamsDescription
start-Start animation
stop-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

Last updated on 18 Jun 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc