1.0.3 • Published 7 months ago

gif-loader-library v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

GifViewer Library

GifViewer is a simple and lightweight React Native library for loading and displaying GIF images using react-native-fast-image. It includes built-in loading indicators and error handling.

Installation

npm install gif-loader-library

Usage

import React from 'react';
import { View, StyleSheet } from 'react-native';
import GifViewer from './GifViewer'; // Update with your path if using locally

const App = () => {
  return (
    <View style={styles.container}>
      <GifViewer 
        src="https://media.giphy.com/media/3o6ZsYm5r8r5WDq7yE/giphy.gif"
        style={styles.gif}
      />
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#fff',
  },
  gif: {
    width: 300,
    height: 300,
  },
});

export default App;

Features

✅ Display GIFs from remote URLs.

✅ Built-in loading indicator.

✅ Error handling with logs.

✅ Lightweight and easy to integrate.

License

This project is licensed under the MIT License.

Contributions

Contributions, issues, and feature requests are welcome! Feel free to submit a pull request.

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago