
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
react-native-marquee
Advanced tools
A pure JavaScript marquee text component for react native.
npm install --save react-native-marquee
or
yarn add react-native-marquee
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 }}
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',
},
});
MarqueeText component basically inherits TextProps and the followings are additional ones:
Prop | Type | Optional | Default | Description |
---|---|---|---|---|
marqueeOnStart | boolean | true | true | A flag whether to start marquee animation right after render |
speed | number | true | 1 | Speed calculated as pixels/second |
loop | boolean | true | true | A flag whether to loop marquee animation or not |
delay | number | true | 0 | Duration to delay the animation after render, in milliseconds |
onMarqueeComplete | function | true | void | A callback for when the marquee finishes animation and stops |
consecutive | boolean | true | false | A flag to enable consecutive mode that imitates the default behavior of HTML marquee element. Does not take effect if loop is false |
These methods are optional, you can use the isOpen property instead
Prop | Params | Description |
---|---|---|
start | - | Start animation |
stop | - | Stop animation |
Do you have any idea or want to change something? Just open an issue. Contributions are always welcome.
FAQs
React Native Marquee Text Component
The npm package react-native-marquee receives a total of 1,092 weekly downloads. As such, react-native-marquee popularity was classified as popular.
We found that react-native-marquee demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.