From 62f03a1f9ca487a0b375ebd8ff36a9bffa6dcaa1 Mon Sep 17 00:00:00 2001 From: Mihai Date: Thu, 14 Jul 2022 17:57:35 +0300 Subject: [PATCH] User ImagePropTypes from deprecated-react-native-prop-types --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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