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

(rebased from commit e1882fd)
  • Loading branch information
cobarx authored and Beau Ner committed Oct 10, 2019
1 parent 7e2cf79 commit bb7b0fb
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 @@ -234,10 +234,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 bb7b0fb

Please sign in to comment.