All Projects → ZXVentures → React Native Async Image Animated

ZXVentures / React Native Async Image Animated

Licence: mit
Simple cross-platform asynchronous image component for React Native 🙌🏻 with a progressive and placeholder image support. Placeholder color otherwise with a few animation options.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to React Native Async Image Animated

React Native Really Awesome Button
React Native button component. Awesome Button is a 3D at 60fps, progress enabled, social ready, extendable, production ready component that renders an awesome animated set of UI buttons. 📱
Stars: ✭ 988 (+600.71%)
Mutual labels:  animated
Boxloaderview
Stars: ✭ 76 (-46.1%)
Mutual labels:  animated
React Native Web Modal
React Native Modal Implementation for Web
Stars: ✭ 114 (-19.15%)
Mutual labels:  animated
Vue Slicksort
A set of vue mixins to turn any list into an animated, touch-friendly, sortable list ✌️
Stars: ✭ 1,010 (+616.31%)
Mutual labels:  animated
React Native Hole View
✂️ React-Native component to cut a touch-through holes anywhere you want. Perfect solution for tutorial overlay
Stars: ✭ 61 (-56.74%)
Mutual labels:  animated
React Native Rating
🌟 cross-platform rating for react-native built with Animated and native driver 🌟
Stars: ✭ 90 (-36.17%)
Mutual labels:  animated
React Awesome Button
React button component. Awesome button is a 3D UI, progress, social and share enabled, animated at 60fps, light weight, performant, production ready react UI button component. 🖥️ 📱
Stars: ✭ 943 (+568.79%)
Mutual labels:  animated
React Native Expanding Circle Transition
A simple react native component to make an expanding circle transition.
Stars: ✭ 125 (-11.35%)
Mutual labels:  animated
Animateddropdownmenu
A clean interface dropdown menu, appears underneath navigation bar to display a list of related items when you click on the navigation title.
Stars: ✭ 70 (-50.35%)
Mutual labels:  animated
Sortinganimation
A visual representation for sorting algorithms
Stars: ✭ 105 (-25.53%)
Mutual labels:  animated
Spalert
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.
Stars: ✭ 1,014 (+619.15%)
Mutual labels:  animated
Animatedpencil
Animated Pencil Action view for Android
Stars: ✭ 61 (-56.74%)
Mutual labels:  animated
Particles.js
A lightweight, dependency-free and responsive javascript plugin for particle backgrounds.
Stars: ✭ 1,336 (+847.52%)
Mutual labels:  animated
Paperview
A high performance X11 animated wallpaper setter
Stars: ✭ 999 (+608.51%)
Mutual labels:  animated
Typewriterview
Android library for typewriter like effects
Stars: ✭ 124 (-12.06%)
Mutual labels:  animated
Animricheditor
rich text editor which enables users to insert/delete bitmaps and text into edit-view with animations.
Stars: ✭ 967 (+585.82%)
Mutual labels:  animated
Animated Stars Android
Draw animated stars on Android view canvas - written in Kotlin
Stars: ✭ 85 (-39.72%)
Mutual labels:  animated
Expo Dark Mode Switch
A beautiful React dark mode switch component for iOS, Android, and Web
Stars: ✭ 137 (-2.84%)
Mutual labels:  animated
React Native Submit Button
Animated Submit button. Works on both android and ios.
Stars: ✭ 124 (-12.06%)
Mutual labels:  animated
React Native Animated Header Example
example of an animated header that contains components who animate based on the scroll position of a ScrollView
Stars: ✭ 97 (-31.21%)
Mutual labels:  animated

AsyncImageAnimated

Simple cross-platform asynchronous image component for React Native that supports progressive and placeholder images, while providing a placeholder color when one is not provided.

Source is available in the AsyncImageAnimated/src directory. 🙂

Exports

  • AsyncImageAnimated: Asynchronous image component

Installation

npm i --save react-native-async-image-animated

Usage Examples

Fetch an image with a 30x30 dimension and a placeholderColor.

<AsyncImageAnimated
  source={{
    uri: 'https://i.imgur.com/R5TraVR.png'
  }}
  placeholderColor={'#cfd8dc'}
  style={{
    height: 30,
    width: 30
  }}
/>

Fetch an image with a 30x30 dimension and a progressive image.

<AsyncImageAnimated
  source={{
    uri: 'https://i.imgur.com/R5TraVR.png'
  }}
  placeholderSource={{
    uri: 'https://i.imgur.com/TSl1zQR.jpg'
  }}
  style={{
    height: 30,
    width: 30
  }}
/>

Fetch an image with a 30x30 dimension and a placeholder image.

<AsyncImageAnimated
  source={{
    uri: 'https://i.imgur.com/R5TraVR.png'
  }}
  placeholderSource={require('./path/to/image.png')}
  style={{
    height: 30,
    width: 30
  }}
/>

Props

  • AsyncImageAnimated:

    animationStyle?: 'fade' | 'shrink' | 'explode',
    delay?: number,
    imageKey?: string,
    placeholderColor?: string,
    placeholderSource?: { uri: string } | number,
    source: { uri: string }, // required
    style: ViewStyle, // height & width required
    

Conditions

  • If placeholderSource is set the animationStyle is set to fade. It just looks better.

Running the Example

Run the following in the AsyncImageAnimated directory:

npm i
react-native start
npm run ios // or 'android' or 'start' for both

Then reload to view animations again.

Stack

Planned Updates

  • [x] Animate color of placeholder while loading - v2
  • [x] Placeholder image support
  • [x] Progressive image support
  • [ ] Tests / Detox Tests
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].