View.propTypes -> ViewPropTypes (#824)

This commit is contained in:
thomasobrien99 2017-11-03 11:38:37 -07:00 committed by Matt Apperson
parent f73b7a0484
commit 1ba6b062e4
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {StyleSheet, requireNativeComponent, NativeModules, View, Image} from 'react-native';
import {StyleSheet, requireNativeComponent, NativeModules, View, ViewPropTypes, Image} from 'react-native';
import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
import VideoResizeMode from './VideoResizeMode.js';
@ -308,7 +308,7 @@ Video.propTypes = {
translateX: PropTypes.number,
translateY: PropTypes.number,
rotation: PropTypes.number,
...View.propTypes,
...ViewPropTypes,
};
const RCTVideo = requireNativeComponent('RCTVideo', Video, {

1
ViewPropTypes Normal file
View File

@ -0,0 +1 @@
M Video.js