Skip to content

Commit

Permalink
Merge pull request TheWidlarzGroup#1488 from react-native-community/f…
Browse files Browse the repository at this point in the history
…ix-undefined-ui-manager

fix: access on undefined variable
  • Loading branch information
cobarx authored Feb 19, 2019
2 parents 80fb571 + dc75d23 commit e1882fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit e1882fd

Please sign in to comment.