Merge pull request #1488 from react-native-community/fix-undefined-ui-manager

fix: access on undefined variable
This commit is contained in:
Hampton Maxwell 2019-02-18 23:21:57 -08:00 committed by GitHub
commit e1882fdeb6
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() {