Skip to content

Commit

Permalink
Migrate UIManager.getViewManagerConfig -> UIManager.hasViewManagerCon…
Browse files Browse the repository at this point in the history
…fig 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
  • Loading branch information
mdvacca authored and facebook-github-bot committed Mar 24, 2021
1 parent 3e7d51f commit a15a46c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a15a46c

Please sign in to comment.