mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-16 18:03:14 +03:00
replaced with reanimated in ProgressiveImage
This commit is contained in:
parent
153943ea2a
commit
afa2d8f64f
@ -1,6 +1,7 @@
|
||||
import React, { useState } from 'react';
|
||||
import { View, StyleSheet, Animated } from 'react-native';
|
||||
import { View, StyleSheet } from 'react-native';
|
||||
import FastImage from 'react-native-fast-image';
|
||||
import Animated, { Easing } from 'react-native-reanimated';
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
imageOverlay: {
|
||||
@ -31,14 +32,14 @@ const ProgressiveImage = ({ thumbnailSource, source, style, ...props }) => {
|
||||
}*/
|
||||
Animated.timing(thumbnailAnimated, {
|
||||
toValue: 1,
|
||||
useNativeDriver: true,
|
||||
easing: Easing.inOut(Easing.ease),
|
||||
}).start();
|
||||
};
|
||||
|
||||
const onImageLoad = () => {
|
||||
Animated.timing(imageAnimated, {
|
||||
toValue: 1,
|
||||
useNativeDriver: true,
|
||||
easing: Easing.inOut(Easing.ease),
|
||||
}).start();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user