Skip to content

Commit a15a46c

Browse files
mdvaccafacebook-github-bot
authored andcommitted
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
1 parent 3e7d51f commit a15a46c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/rn-tester/js/examples/Snapshot/SnapshotViewIOS.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTyp
2222
// Verify that RCTSnapshot is part of the UIManager since it is only loaded
2323
// if you have linked against RCTTest like in tests, otherwise we will have
2424
// a warning printed out
25-
const RCTSnapshot = UIManager.getViewManagerConfig('RCTSnapshot')
25+
const RCTSnapshot = UIManager.hasViewManagerConfig('RCTSnapshot')
2626
? require('../../../RCTTest/RCTSnapshotNativeComponent')
2727
: View;
2828

0 commit comments

Comments
 (0)