
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@stockfit/react-native-marquee-any
Advanced tools
A pure JavaScript marquee component for react native. This package is inspired by react-native-marquee. Instead of limiting the children to text, it can animate any component you like.
A pure JavaScript marquee component for react native. This package is inspired by react-native-marquee. Instead of limiting the children to text, it can animate any component you like.
To see a live demo of the package in action, click here: Expo Snack
npm install --save @stockfit/react-native-marquee-any
or
yarn add @stockfit/react-native-marquee-any
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import { Marquee } from "@stockfit/react-native-marquee-any";
export default class MarqueeTextSample extends Component {
render() {
return (
<View style={styles.container}>
<Marquee
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.
</Marquee>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
},
});
Prop | Type | Optional | Default | Description |
---|---|---|---|---|
style | StyleObj | true | - | text style |
duration | number | true | 3000 | Number of milliseconds until animation finishes from start. |
loop | boolean | true | false | Set this true when animation repeats. |
marqueeOnStart | boolean | true | false | Set this true while waiting for new data from a refresh. |
marqueeResetDelay | number | true | 0 | Number of milliseconds to wait before resetting the marquee position after it finishes. |
marqueeDelay | number | true | 0 | Number of milliseconds to wait before starting or restarting marquee. |
onMarqueeComplete | function | true | - | Callback function for when the marquee completes its animation |
useNativeDriver | boolean | true | false | Set this truen if you want to use native driver |
easing | function | true | inOut | Easing function to define animation curve. |
These methods are optional, you can use the isOpen property instead
Prop | Params | Description |
---|---|---|
startAnimation | delay | Start animation |
stopAnimation | - | Stop animation |
Do you have any idea or want to change something? Just open an issue. Contributions are always welcome.
FAQs
A pure JavaScript marquee component for react native. This package is inspired by react-native-marquee. Instead of limiting the children to text, it can animate any component you like.
The npm package @stockfit/react-native-marquee-any receives a total of 2 weekly downloads. As such, @stockfit/react-native-marquee-any popularity was classified as not popular.
We found that @stockfit/react-native-marquee-any 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.