Skip to content

Commit 7d50939

Browse files
committed
1 parent 0c96167 commit 7d50939

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Video.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react';
22
import PropTypes from 'prop-types';
3-
import { StyleSheet, requireNativeComponent, NativeModules, View, ViewPropTypes, Image, Platform, findNodeHandle } from 'react-native';
3+
import { StyleSheet, requireNativeComponent, NativeModules, View, ViewPropTypes, Image, Platform, findNodeHandle, UIManager } from 'react-native';
44
import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
55
import TextTrackType from './TextTrackType';
66
import FilterType from './FilterType';
@@ -254,10 +254,10 @@ export default class Video extends Component {
254254
}
255255
}
256256
getViewManagerConfig = viewManagerName => {
257-
if (!NativeModules.UIManager.getViewManagerConfig) {
258-
return NativeModules.UIManager[viewManagerName];
257+
if (!UIManager.getViewManagerConfig) {
258+
return UIManager[viewManagerName];
259259
}
260-
return NativeModules.UIManager.getViewManagerConfig(viewManagerName);
260+
return UIManager.getViewManagerConfig(viewManagerName);
261261
};
262262

263263
render() {

0 commit comments

Comments
 (0)