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 🙏

© 2024 – Pkg Stats / Ryan Hefner

fluid-react-native

v1.1.3

Published

What is Fluid? Fluid is a wrapper to animate your component.

Downloads

7

Readme

Fluid

What is Fluid? Fluid is a wrapper to animate your component.

It can be as simple as:

<Fade>
  <Text>Fade on Mount!</Text>
</Fade>

Kapture 2021-06-17 at 15 48 07

How to install?

Simply run yarn add fluid-react-native or npm install fluid-react-native

How can i use it?

Fluid have couple of animated wrapper / component such as:

Fade: Fade in animation

Jump: Jump animation

Shake: Shake animation

Bounce: Bouncy scale animation

Those components can receive the following properties:

| Command | Required | Type | Default | Description | | ---------------- | -------- | -------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | children | Yes | ReactNode | - | Your element that you want to animate. Put it here. | | when | No | boolean | false | Set to true if you want to animate in on demand. | | hide | No | boolean | false | Set to true if you want to hide the children then set it to false to show and animate the children. | | duration | No | number in ms | varies | The value may be vary depending on the component. Fade have default duration of 800 (fade in duration). Shake and Jump have default duration of 100 (delay between each translate). Bounce doesn't have duration. | | onEndAnimation | No | () => void | null | This function run when the animation is ended. You might want to combine it with when prop. |

Fluid components use InView component to check if it is in view or not. For example, if your element is in the bottom part of your 1 meter ScrollView, the animation will not start until it is in view. You also can use this InView component by simply import it.

You can look some example or usage in src/App.tsx. Or you can just clone the repo and run yarn start.

What's Next?

I'm planning to develop Fluid so it's not just an animation library. I'm planning to develop an animated core-ui as well like Button or Text Input. For example if there is an error message in the Text Input, it will do the shake animation.

Epilogue

Feel free to open an issue if you find a bug. You can also open a PR if you want to fix the bug that you found or you just want to improve this lib.