Merge pull request #1488 from react-native-community/fix-undefined-ui-manager
fix: access on undefined variable
This commit is contained in:
commit
e1882fdeb6
6
Video.js
6
Video.js
@ -227,10 +227,10 @@ export default class Video extends Component {
|
||||
};
|
||||
|
||||
getViewManagerConfig = viewManagerName => {
|
||||
if (!UIManager.getViewManagerConfig) {
|
||||
return UIManager[viewManagerName];
|
||||
if (!NativeModules.UIManager.getViewManagerConfig) {
|
||||
return NativeModules.UIManager[viewManagerName];
|
||||
}
|
||||
return UIManager.getViewManagerConfig(viewManagerName);
|
||||
return NativeModules.UIManager.getViewManagerConfig(viewManagerName);
|
||||
};
|
||||
|
||||
render() {
|
||||
|
Loading…
Reference in New Issue
Block a user