Skip to content

Commit

Permalink
Update to support RN 0.43 +
Browse files Browse the repository at this point in the history
  • Loading branch information
robwalkerco authored Nov 2, 2017
1 parent 5ce7fc0 commit 0a893b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private void updateCacheSize(DiskStorageCache cache) throws NoSuchMethodExceptio

@ReactMethod
public void getImageCacheSize(Promise promise){
FileCache cache1 = ImagePipelineFactory.getInstance().getMainDiskStorageCache();
FileCache cache1 = ImagePipelineFactory.getInstance().getMainFileCache();
long size1 = cache1.getSize();
if (size1 < 0){
try {
Expand All @@ -77,7 +77,7 @@ public void getImageCacheSize(Promise promise){
}
size1 = cache1.getSize();
}
FileCache cache2 = ImagePipelineFactory.getInstance().getSmallImageDiskStorageCache();
FileCache cache2 = ImagePipelineFactory.getInstance().getSmallImageFileCache();
long size2 = cache2.getSize();
if (size2 < 0){
try {
Expand Down

0 comments on commit 0a893b6

Please sign in to comment.