diff --git a/index.js b/index.js index e6ce0e0..134a932 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Image, ImageBackground, Platform, StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native'; -import { ViewPropTypes } from 'deprecated-react-native-prop-types'; +import { ImagePropTypes, ViewPropTypes } from 'deprecated-react-native-prop-types'; import Icon from 'react-native-vector-icons/MaterialIcons'; import Video from 'react-native-video'; // eslint-disable-line @@ -607,8 +607,8 @@ export default class VideoPlayer extends Component { VideoPlayer.propTypes = { video: Video.propTypes.source, - thumbnail: Image.propTypes.source, - endThumbnail: Image.propTypes.source, + thumbnail: ImagePropTypes.source, + endThumbnail: ImagePropTypes.source, videoWidth: PropTypes.number, videoHeight: PropTypes.number, duration: PropTypes.number, @@ -642,7 +642,7 @@ VideoPlayer.propTypes = { seekBarKnob: ViewPropTypesVar.style, seekBarKnobSeeking: ViewPropTypesVar.style, seekBarBackground: ViewPropTypesVar.style, - thumbnail: Image.propTypes.style, + thumbnail: ImagePropTypes.style, playButton: ViewPropTypesVar.style, playArrow: Icon.propTypes.style, durationText: ViewPropTypesVar.style