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 => {
|
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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user