react-native-skeleton-image
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

React Native Skeleton Image

Enhance React Native's Image component with skeleton placeholders, providing a seamless loading experience and improved user engagement during image retrieval.

Dependencies

react-native-skeleton-placeholder

This package has a dependency with react-native-skeleton-placeholder. Please follow their installation instructions.

Installation

Using yarn:

yarn add react-native-skeleton-image

Using npm:

npm install react-native-skeleton-image --save

Usage

import React from 'react';
import SkeletonImage from 'react-native-skeleton-image';

const App = () => {
  const uri = 'https://placehold.co/300x200.png';

  return (
    <SkeletonImage style={{ width: 300, height: 200 }} source={{ uri }} />
  );
};

export default App;

License

MIT

Package Sidebar

Install

npm i react-native-skeleton-image

Weekly Downloads

6

Version

1.2.1

License

MIT

Unpacked Size

18.2 kB

Total Files

24

Last publish

Collaborators

  • heliocosta-dev