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_pandey_marquee

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react_native_pandey_marquee

New React-Native-Pandey-Marquee

1.2.9
latest
Source
npmnpm
Version published
Weekly downloads
1
-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Pandey Marquee

React Native Pandey Marquee component, a cross-platform marquee component, powered by Reanimated:

  • 🔋 Powered by Reanimated 3
  • 📱 Works with Expo
  • ✅ Cross-platform (iOS, Android, Web)
  • ⚡️ 60-120fps
  • 🪝 Works with any React Native element/component
  • ⌨️ Written in TypeScript

Installation

npm install react_native_pandey_marquee

For using linear gradient, you also need to install react-native-linear-gradient:

npm install react-native-linear-gradient

Also, you need to install react-native-reanimated, and follow their installation instructions.

This addition provides clear instructions for users to install both react-native-reanimated and react-native-linear-gradient libraries.

Usage

import  Marquee  from 'react_native_pandey_marquee';
import {Text} from 'react-native'

// ...

export function Example() {
  return (
    <Marquee spacing={0} speed={0.7} direction='left'autofill={false} linearGradientColors={['#FF5733', '#FFC300']}>
      <Text style={{fontSize:16, color:'#000',}}>Hello World</Text>
    </Marquee>
  );
}

 //...
export function Example() {
  return (
    <Marquee spacing={0} speed={0.7} direction='left'autofill={false} backgroundColor={'#000'}>
      <Text style={{fontSize:16, color:'#fff',}}>Hello World</Text>
    </Marquee>
  );
}


Props

namedescriptionrequiredtypedefault
childrenAny component that you'd like to apply infinite scrolling / marquee effectYESReact.ReactNode1
speedAnimation speedNOnumber1
spacingSpacing between repeting elementsNOnumber0
styleView style to be applied to Marquee container.NOStyleProp<ViewStyle>
directionMove text from both direction.NOstringleft
autofillText Width ControlNOboolean
linearGradientColorsAdd Gradient Color in the backgroundNOstring
backgroundColorAdd Gradient Color in the backgroundNOstring

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

ISC

AnimateReactNative.com - Premium and Custom React Native animations.

Keywords

react-native-marquee

FAQs

Package last updated on 14 Feb 2024

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