From 5f59333a8d19e807c1eb33912cd6a2027e0d5fbb Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 2 Aug 2017 10:25:09 -0400 Subject: [PATCH] Allow number as source --- FastImage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FastImage.js b/FastImage.js index f669fcd..e7211d4 100644 --- a/FastImage.js +++ b/FastImage.js @@ -88,7 +88,7 @@ const FastImageSourcePropType = PropTypes.shape({ FastImage.propTypes = { ...View.propTypes, - source: FastImageSourcePropType, + source: PropTypes.oneOfType([FastImageSourcePropType, PropTypes.number]), onLoadStart: PropTypes.func, onProgress: PropTypes.func, onLoad: PropTypes.func,