npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-reanimatable

v0.5.0

Published

Wrapper for Reanimated with an easy declarative API.

Readme

react-native-reanimatable

Easy way to create 60fps animations using react-native-reanimated.

Warning

This is still very work in progress. Many things may change. It's not recommended to use it in production right now (but I will :D).

Many things are still missing. Check out our roadmap.

Installation

Install the library from npm:

npm i --save react-native-reanimatable

or

yarn add react-native-reanimatable

After that, follow the Getting Started of Reanimated, because the library uses it under the hood.

Usage

Please, check out Example folder for now. You can run examples using Expo.

Detailed usage and explanation will come later.

Roadmap

  • [ ] Add support for decay and spring type of animations
  • [x] Add support for keyframes (interpolation)
  • [x] Add support for scroll event delegation
  • [ ] Add support for pan events delegation
  • [ ] Add support for animated snap point of delegation
  • [ ] Add support for mounting/unmounting animations
  • [ ] Add more examples
  • [ ] Add docs
  • [ ] Add typings
  • [ ] Add some out of the box animations (bounces, zooms etc)
  • [ ] Add animation lifecycle
  • [ ] Add support for color animations
  • [ ] Add ability to control the animation (play, pause, reset)

Example

import React from 'react';
import {
  StyleSheet,
  Text,
  View,
  Button,
  Animated,
} from 'react-native';
import { Reanimatable, createAnimationConfig } from 'react-native-reanimatable';
import Animated from 'react-native-reanimated';

const config = createAnimationConfig({
  animation: {
    type: 'timing',
    duration: 300,
  },
  values: {
    width: { from: 100, to: 150 },
    height: { from: 100, to: 150 },
    translateY: { from: 0, to: 200 },
  },
});

const s = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
  animationContainer: {
    marginBottom: 100,
  },
  animatableView: {
    height: 100,
    backgroundColor: 'red',
  },
});

export default class App extends React.PureComponent {
  state = {
    value: false,
  };

  toggleAnimation() {
    this.setState((state) => ({ value: !state.value }));
  }

  render() {
    return (
      <View style={s.container}>
        <Reanimatable
          config={config}
          value={this.state.value}
          containerStyle={s.animationContainer}
        >
          {({ width, height, translateY }) => (
            <Animated.View
              style={[
                s.animatableView,
                { width, height, transform: [{ translateY }] },
              ]}
            />
          )}
        </Reanimatable>

        <Button
          title="Toggle Animation"
          onPress={() => this.toggleAnimation()}
          style={s.button}
        />
      </View>
    );
  }
}

Inspirations

Inspired by incredible react-native-animatable.

License

MIT © Terry Sahaidak 2019