react-native-gif-engines
v0.0.6
Published
React Native Gif Engines is a library that allows you to test multiple native libraries for displaying GIF animations on Android and iOS platforms, primarily to determine which engine provides the best performance.
Downloads
2
Readme
React Native Gif Engines
React Native Gif Engines is a library that enables you to test multiple native libraries for displaying GIF animations on Android and iOS platforms, primarily to determine which engine provides the best performance.
Table of Contents
Features
- Supports multiple GIF engines for both Android and iOS
- Helps you find the best-performing GIF engine for your React Native app
Supported Engines
Android
iOS
Installation
npm install react-native-gif-engines --save
Usage
First, import the library:
import {GifEngine} from 'react-native-gif-engines';
// ...
render() {
return (
<GifEngine
source={{uri: 'https://example.com/your-gif.gif'}}
style={{width: 200, height: 100}}
androidEngine="glide"
iosEngine="SwiftOrigin"
/>
);
}
License
React Native Gif Engines is released under the MIT License.
Made with create-react-native-library