Skip to content

Commit

Permalink
Mobile - BlockStyles - Preview: Add FastImage
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo committed Jul 6, 2022
1 parent 6fa24e5 commit ca0b409
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import {
Dimensions,
Animated,
Easing,
Image,
} from 'react-native';
import FastImage from 'react-native-fast-image';

/**
* WordPress dependencies
*/
Expand Down Expand Up @@ -90,7 +91,7 @@ function StylePreview( { onPress, isActive, style, url } ) {
<View style={ styles.imageWrapper }>
{ isActive &&
getOutline( [ styles.outline, innerOutlineStyle ] ) }
<Image
<FastImage
style={ [ styles.image, styles[ name ] ] }
source={ { uri: url } }
/>
Expand Down

0 comments on commit ca0b409

Please sign in to comment.