From a15a46c78e6480d784b92e4d19d5bbb9587f7e04 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 24 Mar 2021 00:27:56 -0700 Subject: [PATCH] Migrate UIManager.getViewManagerConfig -> UIManager.hasViewManagerConfig in SnapshotViewIOS Summary: This diff and stack migratest Migrate UIManager.getViewManagerConfig -> UIManager.hasViewManagerConfig This is necessary to avoid initializing UIManagerModule to detect if a component is registered into the native platform changelog: [internal] internal Reviewed By: sammy-SC Differential Revision: D27276525 fbshipit-source-id: a9b6ad05e6d3e47df9efad75e42411a441f7a779 --- packages/rn-tester/js/examples/Snapshot/SnapshotViewIOS.ios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rn-tester/js/examples/Snapshot/SnapshotViewIOS.ios.js b/packages/rn-tester/js/examples/Snapshot/SnapshotViewIOS.ios.js index 89296d7d3d767f..f466d40b141a54 100644 --- a/packages/rn-tester/js/examples/Snapshot/SnapshotViewIOS.ios.js +++ b/packages/rn-tester/js/examples/Snapshot/SnapshotViewIOS.ios.js @@ -22,7 +22,7 @@ import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTyp // Verify that RCTSnapshot is part of the UIManager since it is only loaded // if you have linked against RCTTest like in tests, otherwise we will have // a warning printed out -const RCTSnapshot = UIManager.getViewManagerConfig('RCTSnapshot') +const RCTSnapshot = UIManager.hasViewManagerConfig('RCTSnapshot') ? require('../../../RCTTest/RCTSnapshotNativeComponent') : View;