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

reanimated-crossfade-images

v1.0.1

Published

A simple reanimated component for cross fade images in react native. This can be used as both image or background image component.

Downloads

92

Readme

Reanimated Crossfade as Background Image

https://github.com/NischalShahi/reanimated-crossfade-images/assets/37703654/6f3b5e17-b4dc-4757-b4ce-1890a49d3a1e BgSampleVideoAndroid.webm

Reanimated Crossfade

https://github.com/NischalShahi/reanimated-crossfade-images/assets/37703654/40b8cf64-9580-417c-ad11-7e2a33a37f7d SampleVideoAndroid.webm

ReAnimatedCrossfadeImages

ReAnimatedCrossfadeImages is a React Native component that provides a visually appealing way to display and animate images with cross fading transitions. It utilizes the react-native-reanimated library for smooth animations and transitions. This library can be used as both Image or ImageBackground component.

Installation

Before installing ReAnimatedCrossfadeImages, make sure you have react-native-reanimated version 3 or higher installed in your React Native project. If not, you can install it with the following commands:

npm install react-native-reanimated@^3.0.0 reanimated-crossfade-images
# or
yarn add react-native-reanimated@^3.0.0  reanimated-crossfade-images

| Props | Required | Default | Description | | ------------ | -------- | ------- | --------------------------------------------------- | | images | true | | This should be an array of images strings. | | interval | false | 2000 | Interval of images changes in ms. | | fadeDuration | false | 500 | Duration of the cross fade effect between 2 images. | | loop | false | true | Set if the animation happens on loop or only once. |

EXAMPLE FOR REANIMATED CROSSFADE IMAGES

import React from 'react';
import {
  StyleSheet,
  View,
} from 'react-native';

import { CrossFadeImages } from 'reanimated-crossfade-images';

const IMAGES = [] //links for images


function App(): JSX.Element {


  return (
    <View>
      <View style={{width:"100%",height:500}}>
        <CrossFadeImages images={IMAGES} />
      </View>
    </View>
  );
}

export default App;

EXAMPLE FOR REANIMATED CROSSFADE BACKGROUND IMAGES

import React from 'react';
import {
  StyleSheet,
  View,
  Text
} from 'react-native';

import { CrossFadeImages } from 'reanimated-crossfade-images';
import { RNReAnimatedTriImages } from 'rn-reanimated-tri-images';

const IMAGES = [] //links for images


function App(): JSX.Element {

  return (
   <CrossFadeImages images={IMAGES}>
      <View style={{flex:1, justifyContent:'center', alignItems:'center' }}>
        <View style={{width:"80%", backgroundColor:"white", padding: 20}}>
          <Text style={{fontSize:20, textAlign:"center"}}>This is a sample text above the fading background image</Text>
        </View>
      </View>
    </CrossFadeImages> 
  );
}

export default App;