diff --git a/example/src/screens/CacheScreen.tsx b/example/src/screens/CacheScreen.tsx index a7ade06..2e41ff9 100644 --- a/example/src/screens/CacheScreen.tsx +++ b/example/src/screens/CacheScreen.tsx @@ -1,13 +1,13 @@ -import { FlatList } from 'react-native'; +import { Dimensions, FlatList } from 'react-native'; import React from 'react'; import { type CachePolicy } from 'react-native-turbo-image'; import Card from '../components/Card'; const images = [ { - title: 'shared', + title: 'memory', url: 'https://placedog.net/300/300?id=235', - cachePolicy: 'dataCache', + cachePolicy: 'memory', }, { title: 'dataCache', @@ -21,15 +21,18 @@ const images = [ }, ]; +const size = Dimensions.get('window').width / 2 - 2; + const CacheScreen = () => { return ( ( )}