Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 2ddf37a

Browse files
authored
Merge pull request #4 from khrizt/master
Replace View.propTypes for ViewPropTypes
2 parents 4afbd50 + ee41a4e commit 2ddf37a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/imageCacheHoc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
// Load dependencies.
1717
import React from 'react';
18-
import { View } from 'react-native';
18+
import { ViewPropTypes } from 'react-native';
1919
import PropTypes from 'prop-types';
2020
import FileSystemFactory, { FileSystem } from '../lib/FileSystem';
2121
import traverse from 'traverse';
@@ -38,7 +38,7 @@ export default function imageCacheHoc(Image, options = {}) {
3838
fileHostWhitelist: PropTypes.array,
3939
source: PropTypes.object.isRequired,
4040
permanent: PropTypes.bool,
41-
style: View.propTypes.style,
41+
style: ViewPropTypes.style,
4242
placeholder: PropTypes.shape({
4343
component: PropTypes.func,
4444
props: PropTypes.object

0 commit comments

Comments
 (0)