Skip to content

Commit

Permalink
User ImagePropTypes from deprecated-react-native-prop-types
Browse files Browse the repository at this point in the history
  • Loading branch information
mlazari committed Jul 14, 2022
1 parent 89d3d85 commit 62f03a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 62f03a1

Please sign in to comment.