From b67cd1d6568d9e66587815bc04d717005daf889e Mon Sep 17 00:00:00 2001 From: vineethgeorge03 Date: Wed, 30 Jan 2019 01:25:06 +0530 Subject: [PATCH] fixing typings for image to support the latest react native image types --- package.json | 2 +- src/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ae85aac..b61f90f 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "homepage": "https://github.com/wcandillon/react-native-img-cache#readme", "devDependencies": { "@types/react": "^16.0.5", - "@types/react-native": "^0.49.2", + "@types/react-native": "^0.55.0", "ts-npm-lint": "^0.1.0", "tslint": "^4.4.2", "typescript": "^2.1.6" diff --git a/src/index.tsx b/src/index.tsx index 4161585..6459c38 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,5 +1,5 @@ import React, {Component} from "react"; -import {Image, ImageBackground, ImageProperties, ImageURISource, Platform} from "react-native"; +import {Image, ImageBackground, ImageProps, ImageURISource, Platform} from "react-native"; import RNFetchBlob from "rn-fetch-blob"; const SHA1 = require("crypto-js/sha1"); @@ -138,7 +138,7 @@ export class ImageCache { } } -export interface CachedImageProps extends ImageProperties { +export interface CachedImageProps extends ImageProps { mutable?: boolean; }