2.1.0 • Published 2 years ago

@thibmaek/rn-bounce v2.1.0

Weekly downloads
278
License
MIT
Repository
-
Last release
2 years ago

Bounce

Simple animation wrapper component to bounce animate a view on the screen. Uses RN's accelerated Animation API.

Features:

  • Just wrap your component and give it a direction
  • Respects reduced motion preference to skip or show the animation

Usage

import { Alert } from '../../../components/organisms/';

const MyView = () => (
  <View>
    <Bounce bounceInFrom="right">
      <Alert title="Something happened" />
    </Bounce>
  </View>
)

This example will animate the Alert component in from the righthand side.

Signature

interface Props {
    /* Component tree which gets animated with the Bounce component */
    children?: ReactNode,

    /* Direction to bounce in from, default left */
    bounceInFrom?: 'bottom' | 'left' | 'right' | 'top',

    /* Should the rendered view appear at top z level */
    topLevel?: boolean,
}
2.1.0

2 years ago

2.0.0

2 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago