View.propTypes -> ViewPropTypes (#824)
This commit is contained in:
parent
f73b7a0484
commit
1ba6b062e4
4
Video.js
4
Video.js
@ -1,6 +1,6 @@
|
|||||||
import React, {Component} from 'react';
|
import React, {Component} from 'react';
|
||||||
import PropTypes from 'prop-types';
|
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 resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
|
||||||
import VideoResizeMode from './VideoResizeMode.js';
|
import VideoResizeMode from './VideoResizeMode.js';
|
||||||
|
|
||||||
@ -308,7 +308,7 @@ Video.propTypes = {
|
|||||||
translateX: PropTypes.number,
|
translateX: PropTypes.number,
|
||||||
translateY: PropTypes.number,
|
translateY: PropTypes.number,
|
||||||
rotation: PropTypes.number,
|
rotation: PropTypes.number,
|
||||||
...View.propTypes,
|
...ViewPropTypes,
|
||||||
};
|
};
|
||||||
|
|
||||||
const RCTVideo = requireNativeComponent('RCTVideo', Video, {
|
const RCTVideo = requireNativeComponent('RCTVideo', Video, {
|
||||||
|
1
ViewPropTypes
Normal file
1
ViewPropTypes
Normal file
@ -0,0 +1 @@
|
|||||||
|
M Video.js
|
Loading…
Reference in New Issue
Block a user