fix: access on undefined variable

This commit is contained in:
Laurin Quast 2019-02-19 07:38:09 +01:00 committed by GitHub
parent 80fb571af9
commit dc75d236c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,10 +227,10 @@ export default class Video extends Component {
}; };
getViewManagerConfig = viewManagerName => { getViewManagerConfig = viewManagerName => {
if (!UIManager.getViewManagerConfig) { if (!NativeModules.UIManager.getViewManagerConfig) {
return UIManager[viewManagerName]; return NativeModules.UIManager[viewManagerName];
} }
return UIManager.getViewManagerConfig(viewManagerName); return NativeModules.UIManager.getViewManagerConfig(viewManagerName);
}; };
render() { render() {