0.5.2 • Published 9 months ago

@animatereactnative/marquee v0.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

https://github.com/animate-react-native/marquee/assets/2805320/4fb199b2-491c-4621-bf84-85890a8d6f5e

NPM Version runs with expo npm npm

React Native 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 @animatereactnative/marquee

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

Usage

import { Marquee } from '@animatereactnative/marquee';

// ...

export function Example() {
  return (
    <Marquee spacing={20} speed={1}>
      <Heading>Powered by AnimateReactNative.com</Heading>
    </Marquee>
  );
}

Props

namedescriptionrequiredtypedefault
childrenAny component that you'd like to apply infinite scrolling / marquee effectYESReact.ReactNode1
speedAnimation speedNOnumber1
spacingSpacing between repeting elementsNOnumber0
reverseDetermine if the animation should be reversed or not. Based on direction, reverse means left-to-right, right-to-left, top-to-bottom, bottom-to-topNObooleanfalse
directionDirection of the animationNO"horizontal""vertical" or "horizontal"
styleView style to be applied to Marquee container.NOStyleProp<ViewStyle>
positionA shared value that you can pass and it will be modified when the marquee runs. Useful if you want to interpolate or run any additional animationsNOSharedValue<number>
withGestureIndicates if the Marquee can be controlled by the gesturesNOboolean

Contributing

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

License

MIT


0.3.0

12 months ago

0.5.0

9 months ago

0.4.1

9 months ago

0.4.0

9 months ago

0.3.1

12 months ago

0.5.2

9 months ago

0.5.1

9 months ago

0.2.0

2 years ago