1import { Image } from 'react-native';
2import FastImage from 'react-native-fast-image';
3
4export function preloadImages() {
5 const images = [
6 require('../assets/images/graphic1.webp'),
7 require('../assets/images/graphic2.jpg'),
8 require('../assets/images/graphic3.webp')
9 ];
10
11 const uris = images.map(image => ({
12 uri: Image.resolveAssetSource(image).uri
13 }));
14
15 FastImage.preload(uris);
16}