• Stars
    star
    205
  • Rank 191,264 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🌁 ProgressiveImage, progressively load images with React Native.

ProgressiveImage

🌁 ProgressiveImage, progressively load images with React Native.

npm license


Demo of ProgressiveImage.

Progressively load images. Loads a small thumbnail first. Includes fade and blur effects.

Installation

yarn add react-native-progressive-image

Usage

import ProgressiveImage from 'react-native-progressive-image'

const TheProgressiveImage = () =>
  <ProgressiveImage
    thumbnailSource={{ uri: 'http://i.imgur.com/O249H4P.png?bust' + Math.random() }}
    imageSource={{ uri: 'http://i.imgur.com/741u15U.png?bust' + Math.random() }}
    style={{ flex: 1, alignItems: 'stretch' }}
  />

Properties

Prop Description Default
imageSource Image source (e.g. { uri: 'https://facebook.github.io/react/img/logo_og.png' }). None
thumbnailSource Should be a low resolution version of the image used in imageSource. None
thumbnailBlurRadius Blur radius for the low resolution thumbnail (iOS only). 5
style Make sure to include width and height, or use flex. None
imageFadeDuration Fade-in duration for the image in ms. 250
thumbnailFadeDuration Fade-in duration for the thumbnail in ms. 250
onLoadThumbnail Callback function that gets called when the thumbnail is loaded. noop
onLoadImage Callback function that gets called when the main image is loaded. noop

Credits

Based on Sharath Prabhal's blog post.

More Repositories

1

react-native-fast-image

🚩 FastImage, performant React Native image component.
TypeScript
8,180
star
2

DatePickerCell

πŸ“… Inline/Expanding date picker for table views.
Swift
326
star
3

ant-design-draggable-modal

The Modal from Ant Design, draggable.
TypeScript
165
star
4

perfect-dark-mode

🌚🌝 Perfect Dark Mode
TypeScript
92
star
5

beezel

Remote build caching for JS monorepos.
TypeScript
31
star
6

i18next-react-native-language-detector

i18next react native language detection.
JavaScript
25
star
7

check-pull-request-title

A GitHub action that checks that a PR title matches a regex pattern.
TypeScript
21
star
8

yarn-workspaces-to-typescript-project-references

Sync Yarn workspace dependencies with TypeScript project references.
TypeScript
21
star
9

react-native-locale-detector

Detects the locale of a user's phone.
Java
17
star
10

typescript-migration-demo

Example of how to incrementally migrate an app to TypeScript.
JavaScript
13
star
11

use-persisted

Persisted versions of useState and useReducer.
TypeScript
12
star
12

redux-saga-request

🏞 Redux Saga Request, request helper for Redux Saga.
JavaScript
11
star
13

react-native-blur-image

React Native Image with cross platform blurRadius property.
Java
10
star
14

redux-shorthand-example

Example of how to use redux shorthand.
JavaScript
9
star
15

gatsby-transformer-cloudinary

Gatsby transformer for Cloudinary.
TypeScript
8
star
16

presskit-static

πŸ—ž A static version of presskit(), with Grunt/Jade/SASS/YAML.
HTML
8
star
17

ColorLockView

UITableViewCell highlighting does not change the color of ColorLockViews.
Swift
7
star
18

react-fast-image

🚩 FastImage, performant React image component.
TypeScript
6
star
19

media.macro

Babel macro to load media.
TypeScript
6
star
20

babelts

Run TypeScript code with Babel.
JavaScript
5
star
21

react-video-tag

Render <video> in React using dangerouslySetInnerHTML.
TypeScript
5
star
22

advent-of-code-2019

Solutions to Advent of Code 2019.
Reason
5
star
23

react-native-camera-roll

Native module to get photos from the device.
Objective-C
5
star
24

media-server

Solution for image and video processing using S3/Lambda/API Gateway/CloudFront.
TypeScript
5
star
25

dv-scripts

Scripts for Node/TypeScript development.
TypeScript
4
star
26

dylans-codemods

Dylan's codemods.
JavaScript
3
star
27

react-splt

A tiny (1kb) React component for split panes (written in ReasonML).
JavaScript
3
star
28

gatsby-cloudinary

This module powers gatsby-remark-cloudinary and gatsby-transformer-cloudinary.
TypeScript
2
star
29

node-docker-monorepo-example

TypeScript
2
star
30

print-yarn-workspace-graph

Print the dependency graph of a yarn workspace.
JavaScript
2
star
31

gatsby-remark-cloudinary

Convert markdown images and videos into custom components with Cloudinary urls.
TypeScript
2
star
32

react-cleaner-markup-example

Example of how you can use React 16 to produce cleaner markup.
JavaScript
1
star
33

rely-example

Example of rely testing.
OCaml
1
star
34

com_dylanvann_bazel_test

Python
1
star
35

bundler-and-compiler-benchmarks

Benchmarks of JavaScript/TypeScript/ReasonML compilation and bundling.
1
star
36

relay-todo-example

Relay + TypeScript + Todo
TypeScript
1
star
37

react-img-tag

This module is for rendering images in React using dangerouslySetInnerHTML.
TypeScript
1
star
38

AIRSensor

An Arduino IR sensor library.
C++
1
star
39

react-native-photo-picker

JavaScript
1
star